Bird
Raised Fist0

You are designing a virtual memory system for a real-time embedded device with strict latency requirements and limited CPU resources. Which page replacement algorithm would you choose and why?

hard🌍 Real-world Scenario Q9 of Q15
Operating Systems - Page Replacement - FIFO, LRU, Optimal Algorithm
You are designing a virtual memory system for a real-time embedded device with strict latency requirements and limited CPU resources. Which page replacement algorithm would you choose and why?
AClock algorithm, because it approximates LRU with lower overhead
BLRU, because it balances fault rate and reasonable implementation overhead
COptimal, because it guarantees minimal page faults and latency
DFIFO, because it has minimal overhead and predictable behavior
Step-by-Step Solution
Solution:
  1. Step 1: Consider real-time and resource constraints

    Optimal is impractical due to future knowledge. LRU has overhead that may violate latency. Clock approximates LRU but still has overhead. FIFO is simplest with predictable timing, suitable for strict latency.
  2. Final Answer:

    Option D -> Option D
  3. Quick Check:

    FIFO suits real-time with minimal overhead [OK]
Quick Trick: FIFO's simplicity fits real-time constraints best [OK]
Common Mistakes:
MISTAKES
  • Choosing Optimal ignoring impracticality
  • Picking LRU despite overhead
  • Assuming Clock is always better than FIFO
Trap Explanation:
PITFALL
  • Candidates often overlook overhead impact on real-time systems, favoring theoretically better algorithms.
Interviewer Note:
CONTEXT
  • Evaluates practical trade-offs in system design under constraints.
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