CS FundamentalsHardGATE CS

On a multiprocessor, the scheduler tries to keep a thread on the CPU it ran on last. Which benefit does this processor affinity provide, and which mechanism can conflict with it?

  1. A. Warm caches (and TLB) on that CPU; load balancing (push/pull migration) can conflict with it
  2. B. Lower interrupt latency; priority inversion conflicts with it
  3. C. Fewer page faults on disk; RAID conflicts with it
  4. D. Avoiding deadlock; Banker's algorithm conflicts with it

Correct answer: A. Warm caches (and TLB) on that CPU; load balancing (push/pull migration) can conflict with it

Migrating a thread throws away its cached working set. Load balancers must weigh idle CPUs against this cost; hard affinity can even forbid migration.

More Operating Systems questions

Exams that ask this topic