- GATE CS
- 2026–27 pattern practice
- Operating Systems
- Virtual memory
- Medium
Belady's anomaly — more page frames causing more page faults for some reference strings — can occur with which page-replacement algorithm?
Memory Management
Pick an option to check your answer.
Answer: D. Solution
FIFO can show Belady's anomaly. Classic example: reference string gives faults with frames but faults with frames.
LRU and Optimal are stack algorithms: the set of pages in memory with frames is always a subset of the set with frames, so adding frames can never increase faults.
Why not the others
- LRU is a stack algorithm and is immune.
- Optimal is a stack algorithm and is immune.
- Every stack algorithm is exactly the class that cannot show the anomaly.