Bird
Raised Fist0

Which of the following best describes the primary role of the Process Control Block (PCB) during a context switch?

easy🔍 Pattern Recognition Q1 of Q15
Operating Systems - Context Switch - Cost & Causes
Which of the following best describes the primary role of the Process Control Block (PCB) during a context switch?
AIt stores the CPU registers and program counter of the currently running process.
BIt manages the scheduling queue to decide the next process to run.
CIt handles the memory allocation for the process during switching.
DIt performs the actual saving and restoring of CPU registers automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Understand PCB's role in context switching

    The PCB stores the CPU state (registers, program counter) so the process can resume correctly after a context switch.
  2. Step 2: Analyze other options

    Managing the scheduling queue is the scheduler's job, not the PCB's. Memory allocation is handled separately by the OS memory manager. The PCB does not perform saving/restoring automatically; the OS uses PCB data to save and restore CPU state.
  3. Final Answer:

    Option A -> Option A
  4. Quick Check:

    PCB holds CPU state for process resumption [OK]
Quick Trick: PCB stores CPU state, not scheduling or memory [OK]
Common Mistakes:
MISTAKES
  • Confusing PCB with scheduler's job
  • Assuming PCB handles memory allocation
  • Believing PCB automates register saving
Trap Explanation:
PITFALL
  • Candidates often think PCB manages scheduling or memory, or that it itself saves registers, but it only stores the saved state.
Interviewer Note:
CONTEXT
  • Tests understanding of PCB's fundamental role in context switching.
Master "Context Switch - Cost & Causes" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes