Context Switch
Context Switch
Context Switch
Context Switch
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.
This is called context switch.
Context of process represented in the PCB.
Context switch triggered by interrupt, pre-
emptive multitasking, or as part of user/kernel
mode switching.
The term “context”, which means the environment
that a program runs inside.
The address space that the program has, plus the
current state of the program’s registers.