1 Answers
Option 1 : Both incur the same number of page faults
LRU:
[ alt="F2 R.S Madhu 13.01.20 D8" src="//storage.googleapis.com/tb-img/production/20/01/F2_R.S_Madhu_13.01.20_D8.png" style="width: 69px; height: 136px;">
9-page faults:
FIFO:
[ alt="F2 R.S Madhu 13.01.20 D9" src="//storage.googleapis.com/tb-img/production/20/01/F2_R.S_Madhu_13.01.20_D9.png" style="width: 58px; height: 136px;">
9-page faults:
Hence LRU and FIFO will have 9-page faults.
Alternate method:
|
Reference |
3 |
8 |
2 |
3 |
9 |
1 |
6 |
3 |
8 |
9 |
3 |
6 |
2 |
1 |
3 |
|
Policy |
|||||||||||||||
|
FIF0 |
F |
F |
F |
H |
F |
F |
F |
F |
F |
H |
H |
H |
F |
H |
H |
|
LRU |
F |
F |
F |
H |
F |
F |
F |
H |
F |
H |
H |
H |
F |
F |
H |
Hence LRU and FIFO will have 9-page faults.
5 views
Answered