How many page faults occur in a system with LRU page replacement policy having 3 (initially empty) page frames for the following string of page reference - 5, 1, 2, 3, 4, 3, 2, 3, 1, 2, 4, 3?
How many page faults occur in a system with LRU page replacement policy having 3 (initially empty) page frames for the following string of page reference - 5, 1, 2, 3, 4, 3, 2, 3, 1, 2, 4, 3? Correct Answer 8
LRU page replacement algorithm:
[ alt="F1 R.S Deepak 1.11.2019 D2" src="//storage.googleapis.com/tb-img/production/19/11/F1_R.S_Deepak_1.11.2019_D2.png" style="width: 100px; height: 125px;">
Hit miss table:
|
5 |
1 |
2 |
3 |
4 |
3 |
2 |
3 |
1 |
2 |
4 |
3 |
|
M |
M |
M |
M |
M |
H |
H |
H |
M |
H |
M |
M |
∴number of miss = page faults = 8
Important Points:
M is miss which corresponds to a page fault
H is hit which corresponds to page hit (no page fault)
মোঃ আরিফুল ইসলাম
Feb 20, 2025