Bird
Raised Fist0

Which of the following statements about context switching is INCORRECT?

medium🐞 Bug Identification Q14 of Q15
Operating Systems - Context Switch - Cost & Causes
Which of the following statements about context switching is INCORRECT?
AContext switching involves saving the current process's CPU state into its PCB
BThe scheduler directly saves and restores CPU registers during a context switch
CContext switches can be triggered by interrupts or system calls
DFrequent context switches increase CPU overhead and reduce throughput
Step-by-Step Solution
  1. Step 1: Verify saving CPU state

    Saving CPU state to PCB is true and essential for context switching.
  2. Step 2: Scheduler role

    The scheduler decides which process runs next but does not perform register saving/restoring; this is done by the OS kernel and hardware mechanisms.
  3. Step 3: Triggers for context switch

    Interrupts and system calls can trigger context switches, so this is correct.
  4. Step 4: Overhead of frequent switches

    Frequent context switches increase overhead and reduce throughput, which is true.
  5. Final Answer:

    Option B -> Option B
  6. Quick Check:

    Scheduler does not directly save/restore registers; it manages process selection.
Quick Trick: Scheduler selects process, kernel saves/restores registers [OK]
Common Mistakes:
MISTAKES
  • Assuming scheduler handles register saving
  • Confusing triggers of context switch
  • Underestimating overhead of frequent switches
Trap Explanation:
PITFALL
  • Option B sounds plausible but misattributes register saving to the scheduler, which is incorrect.
Interviewer Note:
CONTEXT
  • Tests ability to spot subtle misconceptions about OS component responsibilities.
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