[Home]Context switch

HomePage | Recent Changes | Preferences

Showing revision 4
A context switch is the computing process in of storing and restoring the state of a CPU (the context) such that multiple processes can share a single CPU resource. The context switch is an essential feature of a multitasking operating system.

Context switches usually involve the following steps, assuming process P1 is running on the CPU and process P2 is the next process to run on the CPU:

Some CPUs contain logic to allow several hardware contexts to simultaneously exist, eliminating the need to store and restore the CPU context to memory on context switch.


HomePage | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited October 26, 2001 9:55 pm by Gareth Owen (diff)
Search: