CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

TLB lookup 20 ns (done first), memory access 100 ns, single-level page table, TLB hit ratio 80%. In addition, 1 in every 1,000 memory references causes a page fault costing 5 ms. Treating the fault cost as simply added (EAT = translation-based time + p × fault time), what is the effective access time?

  1. A. 140 ns
  2. B. 5,000 ns
  3. C. 5,240 ns
  4. D. 5,140 ns

Correct answer: D. 5,140 ns

Without faults: 0.8 × 120 + 0.2 × 220 = 140 ns. The faults add 0.001 × 5,000,000 ns = 5,000 ns, giving 5,140 ns. Even a 0.1% fault rate makes memory about 37 times slower.

More Operating Systems questions

Exams that ask this topic