Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2. The contents of the frames are as follows initially and after each reference (from left to right):
The *-marked references cause page replacements.
Which one or more of the following could be the page replacement policy/policies in use?
Tap to open full sizeFigure description
A table with an 'initially' column and 13 'after' columns, one per reference. The first row gives the references 1*, 2*, 3*, 4*, 5*, 4, 1, 6*, 4, 5, 1*, 3*, 2*. Below it are three rows, one per frame. Frame 1: 1,1,1,1,1,1,1,6,6,6,6,6,2. Frame 2: -,2,2,4,4,4,4,4,4,4,1,1,1. Frame 3: -,-,3,3,5,5,5,5,5,5,5,3,3. The 'initially' column is a dash in every row.
- (A)
Least Recently Used page replacement policy
- (B)
Least Frequently Used page replacement policy
- (C)
Most Frequently Used page replacement policy
- (D)
Optimal page replacement policy