Question

For the figure below, using the Clock policy of page replacements, show the figure after each...

For the figure below, using the Clock policy of page replacements, show the figure after each of the following page requests:  
3, 2, 1, 5.

    -----
   | >5  |
   |  4* |
   |  2  |
    -----

Homework Answers

Answer #1

Here 5 is the first page which was loaded into memory and page 4 has been referred more than once. Thus it would be given priority when a page has to be chosen for replacement.

Ref. Initial 3 2 1 5
Frame#1 >5 3 3 1 1
Frame#2 4* >4* >4* >4 5
Frame#3 2 2 2* 2* >2
Hit/Fault - F H F F

When page 3 was brought into frame, FIFO replacement technique was used. When page 2 was brought, ideally 4 should have been replaced, but since it has been referred more than once in past, it will be given one more chance and page 3 will be choosen as victim page.

Here total # of fault =3

If you have any questions comment down. Please don't simply downvote and leave. If you are satisfied with answer, please? upvote thanks

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
Consider the following string of page references: 7, 0, 1, 2, 0, 3, 0, 4, 2,...
Consider the following string of page references: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2. The main memory can only contain THREE frames. Show the frame allocation for: (60 points) FIFO (First-in-First-out) LRU (Least Recently Used) Clock Optimal (assume the page reference string continues with 1, 2, 0, 1, 7, 0, 1) List the total number of page faults and the miss rate for each policy. Count page faults only after all frames have been...
In the figure, four long straight wires are perpendicular to the page, and their cross sections...
In the figure, four long straight wires are perpendicular to the page, and their cross sections form a square of edge length a = 18 cm. The currents are out of the page in wires 1 and 4 and into the page in wires 2 and 3, and each wire carries 28 A. What is the magnitude of the net magnetic field at the square's center?
please show all work Evaluate each of the following limits, for after lim the part with...
please show all work Evaluate each of the following limits, for after lim the part with x-> and then a number is below the lim and then after is the fraction part 1) lim x->3 (x^2-2x-3/x^2-5x+6) 2) limx->2 (x-2/square root(2x)-2) 3) lim x->inf (3x^5-7x^3/-5x^5+x^3-9)
Exercise 2 For each of the policies described below discuss the following: (1) Will the policy...
Exercise 2 For each of the policies described below discuss the following: (1) Will the policy affect frictional or structural unemployment? (2) Will the policy increase or decrease the natural unemployment rate? Policy 1: The government reduces the number of weeks of unemployment insurance that unemployed workers can receive. Policy 2: The government rises the minimum wage. Policy 3: The government increases spending on job‐training programs
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...
How do I design a divide by 4 clock in verilog using 2 D Flip Flop...
How do I design a divide by 4 clock in verilog using 2 D Flip Flop blocks? I have created this divide by 2 clock D Flip Flop block so far: module divide_by_2(D, Clk,reset, Q, Qnext); //Divide by 2 clock with reset using D flip flop    input Clk, D, reset;    output Q,Qnext;    reg Q;       assign Qnext = ~Q;       always @(posedge Clk or posedge reset) //always at the positive edge of the clock or...
1) The following figure represents experimental results from study designed after the Beadle and Tatum experiment....
1) The following figure represents experimental results from study designed after the Beadle and Tatum experiment. Assume the mutants are homozygous for recessive alleles causing their phenotypes. Nutrient R Nutrient T Nutrient X Nutrient Z Mutant 1 Yes No Yes Yes Mutant 2 No No Yes Yes Mutant 3 Yes Yes Yes Yes Mutant 4 Yes Yes Yes Yes Mutant 5 No No Yes No A) Construct a biochemical pathway relating nutrients and genes based on the data. Show the...
Please solve each question. I will give likes. For the below Cash Flow find PW using...
Please solve each question. I will give likes. For the below Cash Flow find PW using 10% interest rate. years $ cost 0 4,636 1                  -   2                  -   3      3,000.00 4      3,100.00 5      3,200.00 6      3,300.00 7      3,400.00 8      3,500.00 For the below Cash Flow, find the total PW value using 10% interest rate years cost $ 0 4,915 1      1,000.00 2                  -   3 3,376 4                  -   5      4,000.00 6      1,000.00...
PLEASE SHOW THE GRAPH Assume the United States is operating below full employment. 1. Identify one...
PLEASE SHOW THE GRAPH Assume the United States is operating below full employment. 1. Identify one monetary policy tool that will solve the problem. 2. Using a correctly drawn and labeled AD/AS graph and money market graph, show and explain how the policy you identified in (a) will affect each of the following in the short-run: i. output and employment ii. price level iii. interest rates
Using R and the data in the table below, perform the regression of D on C...
Using R and the data in the table below, perform the regression of D on C (i.e., report the regression equation). Hint: The code to enter the vectors C and D into R is: C <- c(3, 6, 8, 9, 1, 3) D <- c(2, 7, 5, 4, 0, 4) C D 3 2 6 7 8 5 9 4 1 0 3 4 You must figure out how to obtain the regression equation from R. Enter the code below...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT