CPU context switch mechanism
Animated save/restore between two PCBs.
Module 2
Session 2.1
Lesson 3 of 4
CPU Context Switch Mechanism
Operating System Concepts - State Save, State Restore & Scheduler Overhead
Context Switch Overview
Select any phase on the diagram to inspect CPU registers, Process Control Block (PCB) states, and OS actions.
📟 Active CPU Registers Simulation:
CPU Core: Executing P₀ | PC: 0x004010A0 | Regs: [R1=42, R2=100]
Key Operating System Rule: While the OS is performing a context switch (saving/reloading states), the CPU does no useful application work. This time spent is pure overhead.