Skip to content
We areTOP 1%
Operating Systems · Pro · Topic 2 of 4

Page Replacement & Thrashing

4 questions.
Your progress0%
1st Visit
0/4
2nd Visit
0/4
Revise
0/4

Overview

When a page fault occurs and every frame is full, the operating system must choose a page to evict. The choice strongly affects performance, because evicting a page that is needed soon causes another fault. FIFO evicts the oldest page, LRU evicts the least recently used page, and the Optimal algorithm evicts the page needed furthest in the future, which is the theoretical best and serves as a benchmark. Real systems approximate LRU cheaply with reference bits, as in the clock algorithm. If processes together have too few frames, the system starts thrashing. Interviewers expect you to count page faults by hand and to explain Belady's anomaly and thrashing.

Questions

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account