Question: A process contains eight virtual pages on disk and is assigned a fixed allocation of four page frames in main memory. The following page trace

A process contains eight virtual pages on disk and is assigned a fixed allocation of four page frames in main memory. The following page trace occurs:
A process contains eight virtual pages on disk and is

a. Show the successive pages residing in the four frames using the LRU replacement policy. Compute the hit ratio in main memory. Assume that the frames are initially empty.
b. Repeat part (a) for the FIFO replacement policy.
c. Compare the two hit ratios and comment on the effectiveness of using FIFO to approximate LRU with respect to this particular trace.

1,0,2, 2, 1, 7, 6, 7, 0, 1, 2, 0, 3, 0, 4, 5, 1, 5,2, 4, 5, 6, 7, 6, 7, 2, 4, 2,7, 3, 3, 2, 3

Step by Step Solution

3.47 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a LRU Hit ratio 1633 b FIFO Hit ratio 1633 c These two policies are equally effective ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

451-C-S-D-B-O-S (138).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!