Page Replacement Algorithms
I.S.L SARWANI,
Asst prof, IT,
ANITS
Basic Page Replacement
Page Replacement
Page Replacement Algorithms
1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5
FIFO Page Replacement Algorithm
FIFO Page Replacement
First-In-First-Out (FIFO) Algorithm
��FIFO Replacement – Belady’s Anomaly
1
2
3
1
2
3
4
1
2
5
3
4
9 page faults
1
2
3
1
2
3
5
1
2
4
5
10 page faults
4
4
3
Belady’s algorithm
Optimal Page Replacement Algorithm
Optimal Page Replacement
How do you know this?
Used for measuring how well your algorithm performs
LRU Page Replacement
Least Recently Used (LRU)
LRU Algorithm (Cont.)
Contd..
Second Chance Page Replacement Algorithm
The Clock Page Replacement Algorithm
Global vs. Local Allocation
Thrashing