5,563 views
2 votes
2 votes

A computer has four page frames. The time of loading, time of last access, and the $R$ and $M$ bits for each page are as shown below (the times are in clock ticks):

  1. Which page will NRU replace?
  2. Which page will FIFO replace?
  3. Which page will LRU replace?
  4. Which page will second chance replace?

1 Answer

0 votes
0 votes
Ans: (a) Page 1 because R M = 0 0
      (b) Page 3 because it is loaded at 110 (First In)
      (c) Page 1 because is referenced at 265 (Least Recently)
      (d) Page 1 because it is loaded at 120 and the reference bit is 0.

Related questions

1.7k
views
1 answers
2 votes
admin asked Oct 26, 2019
1,706 views
Consider the following two-dimensional array:int X[64][64];Suppose that a system has four page frames and each frame is $128$ words (an integer occupies one word). Programs that manipulate the ... for (int j = 0; j < 64; j++) X[i][j] = 0;
453
views
0 answers
0 votes
admin asked Oct 26, 2019
453 views
Suppose that two processes $A$ and $B$ share a page that is not in memory. If process $A$ faults on the shared page, the page table entry for ... page into memory? Explain. What is the potential cost of delaying the page table update?
398
views
0 answers
1 votes
admin asked Oct 26, 2019
398 views
How long does it take to load a $64-KB$ program from a disk whose average seek time is $5\: msec,$ whose rotation time is $5 msec,$ and whose ... cylinders is so large that the chance of two pages being on the same cylinder is negligible.
321
views
0 answers
0 votes
admin asked Oct 26, 2019
321 views
Write a program that will demonstrate the difference between using a local page replacement policy and a global one for the simple case of two processes. You ... the per-process page fault rate with that of the local policy approach.