Everything2
Near Matches
Ignore Exact
Full Text
Everything2

task switching

created by guus

(idea) by guus (5.3 y) (print)   ?   (I like it!) Wed Oct 31 2001 at 15:36:23

This is a concept implemented by multitasking operating systems. Every CPU can only execute one task at any given time. To give the user the impression that their computer is running multiple tasks at once, the kernel interrupts a running task after a short, imperceivable delay and switches to another task.

In case of preemptive multitasking, task switches are triggered by a periodic interrupt. The kernel has to make sure the the interrupted task can be restarted later by saving any information needed by the process to continue. In case of cooperative multitasking, task switches are triggered by the tasks themselves.

Whenever tasks are to be switched, the decision has to be made which task may run next. This is done by the task scheduler, which may choose from a variety of algorithms to optimise latency or performance.


printable version
chaos

rundll32 Cooperative multitasking Task Scheduler code switching
multitasking algorithm Vern interrupt
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
The River-Merchant's Wife: A Letter
How to watch the stars from a secluded island
the Wall of Fame
Snuff Etiquette
pitch
A New Student and Her Father
Concert etiquette
Stockholm Syndrome European International White Nights Nodermeet
Nazca Lines
A community without shame has no future
Teach Yourself Scheme
The USA is not a democracy
dialect-specific Chinese characters
New Writeups
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
Everything 2 is brought to you by the letter C and The Everything Development Company