Consider a page reference string as: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2. Assume that there are 3-page frames available.
Calculate the total number of page faults for the above reference string if
LRU policy is used for page replacement.
1.10
2.8
3.9
4.11
🎥 Video solution / Text Solution of this question is given below:
Using LRU with 3 frames on the string
7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2
gives page faults at: 7, 0, 1, 2, 3, 4, 2, 3, 0 → 9 faults.