# Context switch (CPU)

Last edited: 2026-02-05

Context switch

A context switch is when the CPU goes from running one process to running a different one. This involves writing the old process ’s PCB into memory and fetching the second process’s PCB from memory and loading it into the CPU registers .