 |
|
| |
|
 |
 |
at Global Oneness Community.
Share your dreams and let others help you with the interpretation!
Dream Sharing Forum
|
 |
Context switch - Context switch: steps |  | Context switch - Context switch: steps: Encyclopedia II - Context switch - Context switch: steps |  | In a context switch, the state of the first process must be saved somehow, so that, when the scheduler gets back to the execution of the first process, it can restore this state and continue normally.
The state of the process includes all the registers that the process may be using, especially the program counter, plus any other operating system specific data that may be necessary. Often, all the data that is necessary for state is stored in one data structure, ...
See also:Context switch, Context switch - When to switch?, Context switch - Multitasking, Context switch - Interrupt handling, Context switch - User and kernel mode switching, Context switch - Context switch: steps, Context switch - Software vs hardware context switching |  | | Context switch, Context switch - Context switch: steps, Context switch - Interrupt handling, Context switch - Multitasking, Context switch - Software vs hardware context switching, Context switch - User and kernel mode switching, Context switch - When to switch? |  | |
|  |  | Context switch: Encyclopedia II - Context switch - Context switch: steps
Context switch - Context switch: steps
In a context switch, the state of the first process must be saved somehow, so that, when the scheduler gets back to the execution of the first process, it can restore this state and continue normally.
The state of the process includes all the registers that the process may be using, especially the program counter, plus any other operating system specific data that may be necessary. Often, all the data that is necessary for state is stored in one data structure, called a switchframe or a process control block.
Now, in order to switch processes, the switchframe for the first process must be created and saved. The switchframes are sometimes stored upon a per-process stack in kernel memory (as opposed to the user-mode stack), or there may be some specific operating system defined data structure for this information.
Since the operating system has effectively suspended the execution of the first process, it can now load the switchframe and context of the second process. In doing so, the program counter from the switchframe is loaded, and thus execution can continue in the new process.
Other related archivesCPU, I/O, Intel, Operating system technology, Windows, barrel processor, busy-wait, computing, floating point, interrupt, interrupt handler, kernel mode, multitasking, operating system, operating systems, preemptive multitasking, process control block, program counter, scheduling, user mode, x86
 Adapted from the Wikipedia article "Context switch: steps", under the G.N U Free Docmentation License. Please also see http://en.wikipedia.org/wiki |
|
|
More material related to Context Switch can be found here:
|
|
« Back
|
Search the Global Oneness web site |
|
|
|
|
 |
Sneak-Peek of Global Oneness Community
Hi friend! The Global Oneness Community, the place for information and sharing about Oneness is not really launched yet (you will see there is still some clean up to do) ...but it is now open for a sneak-peek! And if you wish - please register and become one of the very first members to do so! Jonas
Forum Home,
Articles,
Photo Gallery,
Videos,
News,
Sitemap
...and much more!
|