Bird
Raised Fist0

In a system where processes have highly variable and bursty working set sizes, which approach better prevents thrashing and why?

hard🚀 Application Q8 of Q15
Operating Systems - Thrashing - Working Set Model & Prevention
In a system where processes have highly variable and bursty working set sizes, which approach better prevents thrashing and why?
AStrictly allocate frames equal to the maximum observed working set size for each process to avoid thrashing.
BAllow processes to swap out entirely when their working set exceeds a fixed threshold.
CApply a global page replacement policy ignoring individual working sets to maximize frame utilization.
DUse adaptive load control to limit the number of active processes based on total available memory and working sets.
Step-by-Step Solution
Solution:
  1. Step 1: Understand bursty working set challenges

    Variable working sets can cause sudden memory pressure and thrashing.
  2. Step 2: Evaluate approaches

    A: Allocating max working set wastes memory during low usage.
    B: Swapping entire processes is costly and reactive, not preventive.
    C: Global replacement ignores locality, increasing thrashing risk.
    D: Adaptive load control limits active processes to fit memory, preventing thrashing.
  3. Final Answer:

    Option D -> Option D
  4. Quick Check:

    Adaptive load control balances memory and process count [OK]
Quick Trick: Limit active processes adaptively to prevent thrashing [OK]
Common Mistakes:
MISTAKES
  • Over-allocating frames wastes memory
  • Ignoring per-process locality in global replacement
  • Assuming swapping entire processes is efficient
Trap Explanation:
PITFALL
  • Candidates often prefer static allocation or global policies, missing adaptive load control benefits.
Interviewer Note:
CONTEXT
  • Assesses ability to apply working set concepts to dynamic, real-world workloads.
Master "Thrashing - Working Set Model & Prevention" 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