recategorized by
5,101 views
20 votes
20 votes

Which of the following page replacement algorithms suffers from Belady’s anamoly?

  1. Optimal replacement

  2. LRU

  3. FIFO

  4. Both (A) and (C)

recategorized by

4 Answers

Best answer
17 votes
17 votes

Answer is (C).

FIFO sufferes from Belady's anomaly. Optimal replacement never suffers from Belady's anomaly.

edited by
13 votes
13 votes
Answer : C) FIFO

How/Why?
Page Replacement algorithms suffer from Belady’s anamoly if :

  • They do not follow the stack based algorithm.

Reference :-

Since LRU & Optimal Replacement Algo follow Stack Algo, hence they are not affected by Belady's Anamoly.

2 votes
2 votes

Belady’s anomaly occurs in those page replacement algorithm which does not have a Stack Algorithm.

Stack Algorithm: It is observed that on increasing the number of frames, the page fault is going to decrease, But FIFO shows an exceptional behavior. This algorithm says that if some pages are present in a system with n number then they are definitely going to present in a system with the n+1 frame. But FIFO denies this and that is why Only FIFO suffers from Belady's Anomaly.

edited by
0 votes
0 votes
In case of Optimal or LRU when i increase the no. of frames then the no. of page faults will either decrease or remains same. But in case of FIFO sometimes even if i increase the no. of frames it is not going to decrease the page faults and infact it is going to increase them. That's why FIFO is having Belady's anamoly, as FIFO doesn't have a property called Stack property and it's not a stack algorithm.
edited by
Answer:

Related questions