A
Context Switch is the
computing process of storing and restoring the
state (
context) of a
CPU such that multiple
processes can share a single CPU resource. The context switch is an essential feature of a
multitasking
operating system. Context switches are usually computationally intensive and much of the design of
operating systems is to optimize the use of context switches. A context switch can mean a register context switch, a task context switch, a thread context switch, or a process context switch. What constitutes the context is determined by the processor and the operating system.
书中谈及context switch的主要指thread context switch
转载于:https://www.cnblogs.com/4netfriend/archive/2007/08/02/839800.html