[ryoko2000ad@hotmail.com: question]
brand@qzx.com
brand@qzx.com
Fri, 27 Apr 2001 15:52:32 +0000
> i would like to know the different between cooperative multitasking
> and premetive multitasking and what is advantages and disadvantages of both.
Cooperative requires each task to call a a system function to release the cpu.
If a task does not call this function then other tasks will not be processed.
Each task must 'cooperate' so they can all have a turn, but there is always a
bad task that either crashes or hogs cpu time.
Preemptive uses a timer to 'preempt' each task after a given period of time,
its timeslice. Other tasks will always get cpu time even if a task crashes.