PrepZone Logo
PrepZone
Back to Fundamentals

Fundamentals · Medium

What is a context switch and why is it considered expensive?

FresherFundamentalsOperating Systems

Answer preview

Context switch: Saving the state (registers, program counter, stack pointer) of the current process/thread and loading the state of another so the CPU can switch execution.…