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?
- A. Warm caches (and TLB) on that CPU; load balancing (push/pull migration) can conflict with it
- B. Lower interrupt latency; priority inversion conflicts with it
- C. Fewer page faults on disk; RAID conflicts with it
- 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
- Linux's CFS gives each runnable task a virtual runtime that increases more slowly for higher-weight (lower nice) tasks, and always runs…
- Which statement about scheduler activations / the two-level (many-to-many) threading model is correct?
- How many of these statements about virtual memory are correct? 1. A process can have a virtual address space larger than physical memory…
- A process accesses an address whose PTE has the valid bit clear. Which TWO situations are both possible, and how does the OS tell them…
- Which feature lets an OS allocate memory for a growing stack only when it is actually touched?
- A system thrashes at 50 processes. Which of these will reduce thrashing? 1. Using local page replacement 2. Adding more physical memory 3…