Difficulty: Easy
Correct Answer: pages out pages that have not been used recently
Explanation:
Introduction / Context:
When physical memory fills up, a virtual memory system must choose which page to evict. The replacement policy impacts hit rates and overall performance. LRU is a widely taught policy that approximates the ideal of keeping the working set in memory by favoring pages that were used most recently and discarding those that have been idle the longest.
Given Data / Assumptions:
Concept / Approach:
The working set model suggests that the near future usage correlates with recent past usage. LRU embodies this by selecting for eviction the page with the oldest access timestamp. Real systems approximate LRU using counters, stacks, clock algorithms, or reference bits due to overhead constraints.
Step-by-Step Solution:
Verification / Alternative check:
Performance studies show LRU tends to outperform FIFO on many workloads because it avoids Belady anomalies typical of FIFO and aligns with temporal locality.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
pages out pages that have not been used recently.
Discussion & Comments