A process contains 8 virtual pages on the disk, and is assigned a fixed allocation of 4 page frames in the main memory . The following page trace occurs: 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 1.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. 2.Repeat part (a) for the FIFO replacement policy. 3Compare the two hit ratios and comment on the effectiveness of using FIFO to approximate LRU with respect to this particular trace.
A process contains 8 virtual pages on the disk, and is assigned a fixed allocation of 4 page frames in the main memory . The following page trace occurs: 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 1.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. 2.Repeat part (a) for the FIFO replacement policy. 3Compare the two hit ratios and comment on the effectiveness of using FIFO to approximate LRU with respect to this particular trace.
Chapter11: Operating Systems
Section: Chapter Questions
Problem 26VE
Related questions
Question
100%
A process contains 8 virtual pages on the disk, and is assigned a fixed allocation of 4 page frames in the main memory . The following page trace occurs: 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
1.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.
2.Repeat part (a) for the FIFO replacement policy.
3Compare the two hit ratios and comment on the effectiveness of using FIFO to approximate LRU with respect to this particular trace.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning