CS FundamentalsModerateGATE CS

Reference string: 5, 3, 5, 2, 3, 5, 4, 3, 2, 5, 3, 2 with 3 frames under LRU (initially empty). What is the hit ratio?

  1. A. 6/12
  2. B. 5/12
  3. C. 7/12
  4. D. 8/12

Correct answer: A. 6/12

LRU causes 6 faults among 12 references, so hits = 6 and the hit ratio is 6/12.

More Operating Systems questions

Exams that ask this topic