Computer Sciences > Gate 2016 Set-2 > Page Replacement Algorithm
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
A
LRU (Least Recently Used)
B
OPT (Optimal Page Replacement)
C
MRU (Most Recently Used)
D
FIFO (First In First Out)

Correct : P

Given:
Page replacement algorithms: LRU, OPT, MRU, and FIFO.
Condition: Page fault rate increases even when the number of allocated frames increases.
To find:
The page replacement algorithm that shows this behavior.
Solution:
Okay, I know that this phenomenon is called Belady's Anomaly.
Let me recall which algorithms suffer from Belady's Anomaly.
Stack-based algorithms never exhibit Belady's anomaly because the set of pages in memory for n frames is always a subset of the pages in memory for n + 1 frames.
Both LRU and Optimal (OPT) are stack algorithms, so they never suffer from this issue.
Now looking at FIFO, the First-In-First-Out algorithm does not satisfy the inclusion property.
Because of this, for certain reference strings, increasing the number of page frames actually leads to more page faults in FIFO.
So FIFO is definitely the algorithm that shows this behavior.
Answer: (D) FIFO (First In First Out)

Similar Questions

Recall that Belady’s anomaly is that the pages-fault rate may increase as the number of allocated frames increases. Now consider the following statements: S1...
#170 MCQ
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

page replacement algorithms GATE computer science 2016 page fault rate increase LRU algorithm FIFO algorithm optimal page replacement least recently used first in first out most recently used computer science gate

Unique Visitor Count

Total Unique Visitors

Loading......