CS FundamentalsVery hardGATE CS (PYQ pattern)

Two CPU-bound processes alternate on one core, 100 context switches per second. Each has a 40-page working set in the TLB (64 entries). Without address-space IDs the TLB is flushed on every switch and each of the 40 pages must be re-walked (0.5 microseconds per miss); with ASIDs no entries are lost. What fraction of CPU time does the flushing waste?

  1. A. 0.4%
  2. B. 0.02%
  3. C. 0.8%
  4. D. 0.2%

Correct answer: D. 0.2%

Misses per second = 100 x 40 = 4000; each costs 0.5 microseconds, so 2 ms per second = 0.2% of CPU time.

More Operating Systems questions

Exams that ask this topic