Context Switch: Process and Cost
Context Switch: Process and Cost
EasyOperating System0% accepted
Explain what happens during a context switch, what data is saved and restored, and why context switches are expensive. Cover PCB structure and voluntary vs involuntary context switch.
Approach
Explain context switch mechanics, PCB, and performance impact.
Input
Timer interrupt fires during process P1
Output
Save P1 PCB (registers, PC, SP); scheduler picks P2; restore P2 PCB; resume P2
More Operating System problems
Browse all coding problems →Scenarios & Expected Answers
Sign in to continue
Create a free account to view answers and mark progress.
- Free forever — no credit card
- Theory Q&A with detailed answers
- Points, streaks & leaderboards