Bird
Raised Fist0

In a multi-core system, how does the context switch overhead per core compare to a single-core system, assuming the same workload per core?

medium🪤 Complexity Trap Q6 of Q15
Operating Systems - Context Switch - Cost & Causes
In a multi-core system, how does the context switch overhead per core compare to a single-core system, assuming the same workload per core?
AOverhead per core is higher due to synchronization between cores during context switches.
BOverhead per core is roughly the same as single-core because context switches are local to each core.
COverhead per core is lower because cores share the workload reducing switches per core.
DOverhead per core is zero because multi-core systems avoid context switches.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze context switch locality

    Context switches happen independently on each core; overhead per core remains similar to single-core.
  2. Step 2: Evaluate other options

    Synchronization overhead is not typically incurred per context switch. Workload sharing does not reduce per-core switches if workload per core is constant. Multi-core systems still perform context switches on each core.
  3. Final Answer:

    Option B -> Option B
  4. Quick Check:

    Context switch overhead is per core, similar to single-core [OK]
Quick Trick: Context switch overhead is local per core [OK]
Common Mistakes:
MISTAKES
  • Assuming cross-core synchronization adds overhead per switch
  • Believing workload sharing reduces per-core overhead
  • Thinking multi-core eliminates context switches
Trap Explanation:
PITFALL
  • Candidates confuse multi-core synchronization with context switch overhead per core.
Interviewer Note:
CONTEXT
  • Checks understanding of context switch overhead scaling in multi-core systems.
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