Difficulty: Medium
Correct Answer: Working set
Explanation:
Introduction / Context:In virtual memory systems, the operating system must decide which page to evict when physical frames are full. Policies like FIFO, LRU, LFU, and working set differ in how they choose a victim page. This question tests understanding of working set–based replacement, which focuses on a process’s current locality of reference.
Given Data / Assumptions:
Concept / Approach:
The working set model tracks the set of pages referenced during the last tau references (or within a time window). Pages outside this set are considered inactive and are the preferred eviction candidates because they are unlikely to be needed soon, reducing the chance of immediate faults.
Step-by-Step Solution:
Define working set W(t) as pages referenced in the last window.On page fault with no free frames, identify pages not in W(t).Select a victim outside W(t); if all are in W(t), choose the one with weakest evidence of recent use.Thus, the policy evicts a page not in the favoured subset (the working set).Verification / Alternative check:
Empirical results and textbook analyses show working set–aware policies reduce thrashing by aligning memory allocation with the process’s active footprint.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing LRU with working set; LRU approximates recent use but does not explicitly track a time-window set. Also, ignoring overhead of tracking the working set window is a common oversight.
Final Answer:
Working set
Discussion & Comments