Question

Given that main memory is composed of only three-page frames for public use and that a...

Given that main memory is composed of only three-page frames for public use and that a seven-page program (with pages a, b, c, d, e, f, g) that requests pages in the following order:

a, c, a, b, a, d, a, c, b, d, e, f

1)  Using the FIFO page removal algorithm, indicate the movement of the pages into and out of the available page frames (called a page trace analysis) indicating each page fault with an asterisk (*). Then compute the failure and success ratios.


​​​​2) Increase the size of memory so it contains four-page frames for public use. Using the same page requests as above and FIFO, do another page trace analysis and compute the failure and success ratios.


​​​​​​3)What general statement can you make from this example? Explain your answer.

Homework Answers

Answer #1

1. FIFO Page Replacement Analysis:

Page Request: a, c, a, b, a, d, a, c, b, d, e, f

Available Page Frame = 3

Page Fault = 10

Hit Ratio = 2 / 12 = 0.17

Miss Ratio = 10 / 12 = 0.83

2. FIFO Page Replacement Analysis:

Page Request: a, c, a, b, a, d, a, c, b, d, e, f

Available Page Frame = 4

Page Fault = 6

Hit Ratio = 6 / 12 = 0.5

Miss Ratio = 6 / 12 = 0.5

3. The hit ratio increase when the available frame increase from 3 to 4 as given below:

Available frame = 3

Then, Hit Ratio = 0.17

Available frame = 4

Then, Hit Ratio = 0.5

But this is not the case in all scenario. When we increase the available frame then the hit ratio may decrease also.  

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Refer to this page request sequence A,C,B,D,A,C,E,A,C,B,D,E to answer the following questions. Perform a page trace...
Refer to this page request sequence A,C,B,D,A,C,E,A,C,B,D,E to answer the following questions. Perform a page trace analysis using three (3) page frames and the First-In First-Out (FIFO) page replacement algorithm. Perform a page trace analysis using three (3) page frames and the Least Recently Used (LRU) page replacement algorithm. Which page replacement algorithm performed best for this page request sequence? Will one page replacement algorithm always perform better than the other? Perform a page trace analysis using four (4) page...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime and criminology? a. Law in action departs substantially from the ideal behavior of the law. b. Focusing only on legally criminalized behavior makes it impossible to consider the impact of gender, race, age and ethnicity. c. Legalistic definitions ignore acts that cause great harm. d. The legalistic model suggests that these are absolute standards for judging right and wrong. e. All of the above....
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as either above (a) or below (b) the target weight. Provide the ordered sample space. 2. The heat on each of two soldered parts is measured and labeled as either low (l), medium (m), or high (h). State the number of elements in the ordered sample space. 3. Consider the set of Beatles songs with a primary writer as either Paul McCartney (P) or John...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT