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
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
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...
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...
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
Count the number of letter As in each page for the first 10 pages of the...
Count the number of letter As in each page for the first 10 pages of the novel ( do not differentiate capital letter and lower case letter) Please report your data first. Here is the data Page 1 = 163 As Page 2 = 117 As 3 = 131 4 = 159 5 = 89 6 = 107 7 = 95 8 = 181 9 = 211 10 = 153 1. Use you data from the first page, calculate the...
The U.S. Trade Deficits for the last half of 1988 are shown in Figure 6.7. Use...
The U.S. Trade Deficits for the last half of 1988 are shown in Figure 6.7. Use the data of Figure 6.7, and the blank form in Figure 6.8 to plot the time series graph for the U.S. Trade Deficits for the last half of 1988. july august sept oct nov dec Mean(10.8) 1988 10.5 11.2 9.2 10.1 10.4 10.5 10.33 0.7 2 1 0.2 0.1 0.8 figure 6.7 : monthly US trade deficits, 1988 ($billions) 2. Use the data in...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT