Bird
Raised Fist0

Given a system with 4 page frames and a reference string, which algorithm would likely cause the most page faults if the reference string exhibits strong locality of reference?

easy🔍 Pattern Recognition Q2 of Q15
Operating Systems - Page Replacement - FIFO, LRU, Optimal Algorithm
Given a system with 4 page frames and a reference string, which algorithm would likely cause the most page faults if the reference string exhibits strong locality of reference?
ALRU, because it always evicts the least recently used page
BFIFO, because it evicts pages in arrival order regardless of usage
COptimal, because it looks ahead and minimizes faults
DClock algorithm, because it approximates LRU
Step-by-Step Solution
Solution:
  1. Step 1: Analyze locality impact

    LRU benefits from locality by keeping recently used pages. Optimal always minimizes faults by definition. FIFO ignores usage patterns and evicts oldest pages, causing more faults with locality.
  2. Final Answer:

    Option B -> Option B
  3. Quick Check:

    FIFO ignores locality, causing more faults [OK]
Quick Trick: FIFO ignores usage, bad for locality-heavy strings [OK]
Common Mistakes:
MISTAKES
  • Assuming LRU causes most faults with locality
  • Confusing Optimal with FIFO in practice
  • Believing Clock is worse than FIFO here
Trap Explanation:
PITFALL
  • Candidates often overlook FIFO's weakness with locality, mistakenly blaming LRU or Clock.
Interviewer Note:
CONTEXT
  • Checks understanding of algorithm behavior with locality of reference.
Master "Page Replacement - FIFO, LRU, Optimal Algorithm" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes