CS FundamentalsHardIBM · Deloitte pattern

A system with 3 CPU cores uses symmetric multiprocessing (SMP), where every core runs the same copy of the OS kernel and can access any ready process. What synchronization problem does this directly introduce that a single-core scheduler does not have?

  1. A. None; SMP needs no extra synchronization since each core has its own cache
  2. B. Multiple cores can try to pick from or modify the shared ready queue (and other kernel data structures) at the same time, requiring locks or lock-free structures to avoid races
  3. C. SMP eliminates the need for context switches entirely
  4. D. SMP requires every process to be single-threaded

Correct answer: B. Multiple cores can try to pick from or modify the shared ready queue (and other kernel data structures) at the same time, requiring locks or lock-free structures to avoid races

Because every core can run kernel code against the same shared structures (ready queue, process table), SMP kernels must protect these with locks (spinlocks, since a core may busy-wait briefly for another core rather than a process on the same core), which a strictly single-core kernel simply does not need for the same structures.

More Operating Systems questions

Exams that ask this topic