CS FundamentalsModerateGATE CS

Which page-replacement algorithms are stack algorithms (the set of pages in memory with n frames is always a subset of the set with n + 1 frames), and therefore can never show Belady's anomaly?

  1. A. FIFO and LRU
  2. B. FIFO and Second Chance
  3. C. Optimal and FIFO
  4. D. LRU and Optimal

Correct answer: D. LRU and Optimal

LRU and OPT satisfy the inclusion property, so adding frames never adds faults. FIFO and its variant second chance (clock) are not stack algorithms and can exhibit Belady's anomaly.

More Operating Systems questions

Exams that ask this topic