GATE Computer ScienceVery hardGATE CS

A fully associative cache (or page frame pool) of k lines has to serve the reference string 6, 5, 5, 7, 4, 6, 5, 2, 2, 6, 5, 7, 3, 2, 4, 5. Under FIFO replacement, what are the numbers of misses with k = 3 and with k = 4 lines, as the pair (k = 3, k = 4)?

  1. A. (12, 11)
  2. B. (11, 10)
  3. C. (12, 10)
  4. D. (11, 12)

Correct answer: D. (11, 12)

Simulating FIFO gives 11 misses with 3 frames and 12 with 4: Belady's anomaly, where more frames cause more faults. LRU, a stack algorithm, gives 12 and 10 and never shows the anomaly.

More Computer Organization and Architecture questions

Exams that ask this topic