CS FundamentalsHardGATE CS

Which statement about Belady's anomaly is correct?

  1. A. It can occur with LRU when the number of frames is odd
  2. B. It occurs with every algorithm for some reference string
  3. C. It cannot occur with stack algorithms such as LRU and Optimal, because the pages held with n frames are always a subset of those held with n + 1
  4. D. It is caused by thrashing when too many frames are added

Correct answer: C. It cannot occur with stack algorithms such as LRU and Optimal, because the pages held with n frames are always a subset of those held with n + 1

For stack algorithms the set of resident pages with n frames is contained in the set with n + 1 frames, so adding frames can never add faults. FIFO is not a stack algorithm, which is why it can show the anomaly.

More Operating Systems questions

Exams that ask this topic