Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 Consider a central memory M 1 consisting of 2 frames and a secondary memory M 2 . Let P = 1 2 1

Part 1
Consider a central memory M1 consisting of 2 frames and a secondary memory M2. Let P =1213124134 the reference string to pages 1,2,3,4, initially located in M2. Using demand paging to move the pages from M2 to M1, calculate the following:
Note: We define the success rate s as follows: s =1-(F / L) where F is the number of page faults and L is the length of the reference string P
1. How many page faults occur for the reference string P, when using FIFO replacement page algorithm?
Fill in the table below [1 Points]
1213124134
F1
F2
p.f
Total Number of Page Faults: ______?[0.5 Point] Success Rate: ________[0.5 Point]
2. Repeat using the LRU strategy.
Fill in the table below [1 Points]
1213124134
F1
F2
p.f
Total Number of Page Faults: ______?[0.5 Point] Success Rate: ________[0.5 Point]
3. Repeat using the Optimal strategy.
Fill in the table below [1 Points]
1213124134
F1
F2
p.f
Total Number of Page Faults: ______?[0.5 Point] Success Rate: ________[0.5 Point]
Part 2
Consider a central memory M1 consisting of 3 frames and a secondary memory M2. Let P =1213124134 the reference string to pages 1,2,3,4, initially located in M2. Using demand paging to move the pages from M2 to M1, calculate the following:
1. How many page faults occur for the reference string P, when using FIFO replacement page algorithm?
Fill in the table below [1 Points]
1213124134
F1
F2
F3
p.f
Total Number of Page Faults: ______?[0.5 Point] Success Rate: ________[0.5 Point]
2. Repeat using the LRU strategy.
Fill in the table below [1 Points]
1213124134
F1
F2
F3
p.f
Total Number of Page Faults: ______?[0.5 Point] Success Rate: ________[0.5Point]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions