CS FundamentalsModerateWipro · Cognizant pattern

Belady's anomaly refers to the surprising fact that:

  1. A. LRU can sometimes perform worse than FIFO on the same reference string
  2. B. Increasing the number of page frames can, under FIFO replacement, increase the number of page faults for some reference strings
  3. C. Optimal replacement sometimes needs more page faults than FIFO
  4. D. Segmentation causes more faults than paging for the same program

Correct answer: B. Increasing the number of page frames can, under FIFO replacement, increase the number of page faults for some reference strings

Belady's anomaly is specific to algorithms (like FIFO) that are not 'stack algorithms': for certain reference strings, giving FIFO more frames can paradoxically cause more faults, not fewer. LRU and Optimal are stack algorithms and are immune to this anomaly.

More Operating Systems questions

Exams that ask this topic