71.9k views
5 votes
For 3 page frames, the following is the reference string :

7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
ii) How many page faults does the FIFO page replacement algorithm produce ?
a) 10
b) 15
c) 11
d) 12

1 Answer

6 votes

Final answer:

The FIFO algorithm produces 10 page faults.

Step-by-step explanation:

The FIFO (First-In-First-Out) page replacement algorithm works by replacing the oldest page in a page frame when a page fault occurs. In this problem, we have 3 page frames and the reference string given is: 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1.

Now let's simulate the page replacement process using FIFO:

  1. 7 (Page Fault)
  2. 0 (Page Fault)
  3. 1 (Page Fault)
  4. 2 (Page Fault)
  5. 0 (Page Fault)
  6. 3 (Page Fault)
  7. 0 (Page Fault)
  8. 4 (Page Fault)
  9. 2 (Page Fault)
  10. 3 (Page Fault)

Therefore, the number of page faults produced by the FIFO algorithm is 10.

User George Host
by
8.2k points