Page Address Stream: F Page Fault Occurring After The Frame Allocation Is Initially Filled
Page Address Stream: F Page Fault Occurring After The Frame Allocation Is Initially Filled
Page Address Stream: F Page Fault Occurring After The Frame Allocation Is Initially Filled
stream 2 3 2 1 5 2 4 5 3 2 5 2
2 2 2 2 2 2 4 4 4 2 2 2
OPT 3 3 3 3 3 3 3 3 3 3 3
1 5 5 5 5 5 5 5 5
F F F
2 2 2 2 2 2 2 2 3 3 3 3
LRU 3 3 3 5 5 5 5 5 5 5 5
1 1 1 4 4 4 2 2 2
F F F F
2 2 2 2 5 5 5 5 3 3 3 3
FIFO 3 3 3 3 2 2 2 2 2 5 5
1 1 1 4 4 4 4 4 2
F F F F F F
2* 2* 2* 2* 5* 5* 5* 5* 3* 3* 3* 3*
CLOCK 3* 3* 3* 3 2* 2* 2* 2 2* 2 2*
1* 1 1 4* 4* 4 4 5* 5*
F F F F F
FIFO
35
30 CLOCK
25 LRU
20
OPT
15
10
5
0
6 8 10 12 14
6 5
(a) State of buffer just prior to a page replacement
n–1 0
page 9 page 19 1
use = 1 use = 1
page 1
• use = 1
•
page 45 2
• use = 0
6 5
(b) State of buffer just after the next page replacement