CS FundamentalsEasyWipro · Cognizant pattern

Which page-replacement algorithm can show Belady's anomaly (more frames giving more page faults)?

  1. A. FIFO
  2. B. LRU
  3. C. LFU implemented as a stack algorithm
  4. D. Optimal (OPT)

Correct answer: A. FIFO

FIFO is not a stack algorithm, so the set of pages held with n frames is not always a subset of those held with n + 1 frames; that is what allows the anomaly. OPT and LRU are stack algorithms and never show it.

More Operating Systems questions

Exams that ask this topic