Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • 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.

FIFO can show Belady's anomaly. Classic example: reference string 1,2,3,4,1,2,5,1,2,3,4,51,2,3,4,1,2,5,1,2,3,4,5 gives 99 faults with 33 frames but 1010 faults with 44 frames.

LRU and Optimal are stack algorithms: the set of pages in memory with kk frames is always a subset of the set with k+1k + 1 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.

Report an error

GATE CS · Operating Systems · Memory Management