Context Switch

From Dikapedia
Jump to: navigation, search

Context Switching is when CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via context switch.


  • Context-switch time is overhead; the system does no useful work while switching. The more complex the OS and the PCB --the longer the context switch.
  • Context switches are costly as it destroys the TLB buffer. A translation lookaside buffer (TLB) is a cahe that memory management hardware uses to improve virtual address translation speed.