piclist 1997\06\01\212136a >
Thread: os/wars - a compilation - was Re: SoNoboby knows
face BY : Clyde Smith-Stubbs email (remove spam text)

On Sun, Jun 01, 1997 at 07:45:23PM -0500, John Griessen wrote:

{Quote hidden}

I'm not sure I understand exactly what you are describing in
the first paragraph, but the second describes what is usually
called "preemptive" multitasking.

Cooperative multitasking is multitasking where a context switch
occurs only when the current task or thread decides it is prepared
to relinquish the CPU. This is usually done by calling an OS
function, e.g. Yield(), which will either return immediately if
no other task is ready to run, or perform a context switch if there
is another task ready.

Preemptive multitasking allows context switches to be triggered
by interrupts and other asynchronous events. Win32 is preemptive,
Win16 is cooperative. That's why Win3.1 gets stupid whenever a
program does something busy, like saving a file. Cooperative
multitasking is often well suited to embedded applications, because you
have complete control over every task, and can ensure that each task
is well-behaved.

Preemptive multitasking is more complex to implement, and more prone
to unexpected behaviour, but essential for a hosted OS that must be able
to run programs that may not be well behaved.

Clyde Smith-Stubbs    | HI-TECH Software,       | Voice: +61 7 3354 2411
spamclydeEraseMEspamhtsoft.com      | P.O. Box 103, Alderley, | Fax:   +61 7 3354 2422
http://www.htsoft.com | QLD, 4051, AUSTRALIA.   |
Download a FREE beta version of our new ANSI C compiler for the PIC
microcontroller! Point your WWW browser at http://www.htsoft.com/

In reply to: <>; from John Griessen on Sun, Jun 01, 1997 at 07:45:23PM -0500
See also: piclist.com/techref/index.htm?key=sonoboby+knows
Reply You must be a member of the piclist mailing list (not only a piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) os/wars - a compilation - was Re: SoNoboby knows

month overview.

new search...