Machine-translated by Google. Questions are authored in English.
Top

Discussion

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)

Answer: D

The algorithm is FIFO (First In First Out).

FIFO can suffer from Belady’s anomaly: for some reference strings, giving a process more frames produces more page faults. The standard example is the string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5, which causes 9 faults with 3 frames but 10 with 4.

LRU and OPT are stack algorithms: the set of pages in memory with \(k\) frames is always a subset of the set with \(k + 1\) frames, so adding frames can never increase the faults. MRU, which evicts the most recently used page, is not the algorithm the anomaly is known for; FIFO is the classic case.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.