in Operating System reopened by
955 views
3 votes
3 votes

A system uses $FIFO$ policy for page replacement.It has $4$ page frames with no pages loaded,
to begin with.The system first accesses $50$ distinct pages in some order and then accesses
the same $50$ pages in reverse order.How many page faults will occur?

  1. $96$
  2. $100$
  3. $97$
  4. $92$
in Operating System reopened by
by
955 views

1 comment

50 + 46 = 96
1
1

2 Answers

2 votes
2 votes

50 distinct pages(forward) - 50 page replacements

reverse order- first 4 pages will be already loaded- then remaining 46 page replacements

total 96

0 votes
0 votes

Access to 50 pages will cause 50-page faults. When these pages are accessed in reverse order, the first four accesses will not cause the page fault. All other access to pages will cause page faults. So total number of page faults will be 50 + (50-4) = 50 + 46 = 96.

Answer:

Related questions