📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Which of the following page replacement algorithms might

      lead to Belady’s anomaly, where increasing the number of page frames increases the number of page faults? 
      A LRU (Least Recently Used) Correct Answer Incorrect Answer
      B FIFO (First In, First Out) Correct Answer Incorrect Answer
      C Optimal Page Replacement Correct Answer Incorrect Answer
      D NRU (Not Recently Used) Correct Answer Incorrect Answer
      E Random Replacement Correct Answer Incorrect Answer

      Solution

      Belady's anomaly occurs when increasing the number of page frames results in an increase in the number of page faults. This paradoxical behavior is observed in the FIFO (First In, First Out) page replacement algorithm. FIFO replaces the oldest page in memory, without considering its future use. While intuitive, FIFO can sometimes cause more page faults when more frames are allocated because the older pages might still be needed soon. Other algorithms like LRU and Optimal generally avoid this anomaly. Why other options are wrong: a) LRU : LRU replaces the least recently used page and generally avoids Belady’s anomaly by retaining pages that have been used recently. c) Optimal Page Replacement : Optimal is the theoretical best algorithm and does not suffer from Belady's anomaly. d) NRU : NRU (Not Recently Used) tends to be more random but doesn't exhibit Belady’s anomaly as strongly as FIFO. e) Random Replacement : Replaces pages randomly, and while not optimal, does not consistently lead to Belady’s anomaly.

      Practice Next

      Relevant for Exams:

      ask-question