GATE Computer ScienceVery hardGATE CSE

A fully associative cache with FIFO replacement serves the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many misses occur with 3 lines and with 4 lines respectively?

  1. A. 10 and 8
  2. B. 9 and 10
  3. C. 10 and 9
  4. D. 9 and 9

Correct answer: B. 9 and 10

FIFO shows Belady's anomaly: 9 misses with 3 lines but 10 with 4 lines (LRU would give 10 and 8).

More Computer Organization and Architecture questions

Exams that ask this topic