Re: Cooperative multitasking OS-??



On 2007-11-30, ssubbarayan <ssubba@xxxxxxxxx> wrote:

Sorry if this sounds novice.I would like to really understand
whats meant by Cooperative multitasking OS?

It means that a task runs until it explicitly and voluntarily
yeilds.

From what I understood going through the
discussion,Cooperative to me looks like FIFO scheduling
mechanism.

No. The scheduling algorithm can be anything.

Wikipedia IIRC says,Cooperative multitasking systems existed during
pre win9xOS days and non existant almost in current scenerio.Is this
true?

Yes.

How different is this Cooperative system from roundrobin or FIFO?

You're confusing the scheduling method that decides
who to run next with the method that decides when to switch to
the next task. The two are more-or-less independant.

How does the OS kernel decide which task/process to promote at
any point of time?

Irrelevent to the question of cooperative vs. pre-emptive
multitasking. "Cooperative" refers to the decision on _when_
to switch to the next task. It has nothing to do with deciding
_who_ the next task is going to be.

What sort of applications need cooperative functionality?

Cooperative multi-tasking can have less overhead than
pre-emptive multt-tasking, so it's ofen used in more resource
limited situations.

--
Grant Edwards grante Yow! I need to discuss
at BUY-BACK PROVISIONS
visi.com with at least six studio
SLEAZEBALLS!!
.



Relevant Pages

  • Re: Usage Scenarios for Fibers instead Threads,...
    ... What is the reason for Windows to not perform such an User-Mode ... "Context-Switch" when scheduling another Thread from the same process on the ... Couldn't Windows switch to another thread ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [PATCH 0/7] KVM: Kernel-based Virtual Machine
    ... ioctlto see which guest memory pages have changed ... encapsulated as Linux processes? ... scheduling between Xen and domain 0, use just the Linux memory management and scheduler ... better performance since there's no need to switch to domain 0 for I/O ...
    (Linux-Kernel)
  • Re: Threads vs Forks in embedded environment : Some Conclusions
    ... because there's no need to switch address spaces. ... the scheduling overheads of threads are the same as of ... because Linux threads are scheduled as if they were separate ... the Linux scheduling system will likely endure as much ...
    (comp.os.linux.development.system)
  • Re: Ending of todays House
    ... "next on five" crap that the other channels have? ... Don't know but I missed the whole bloody thing due to the scheduling ... switch. ...
    (uk.media.tv.misc)