edited by
8,268 views
5 votes
5 votes

Determine the number of page faults when references to pages occur in the following order:
1, 2, 4, 5, 2, 1, 2, 4
Assume that the main memory can accommodate 3 pages and the main memory already has the pages 1 and 2, with page one having brought earlier than page 2. (LRU page replacement algorithm is used)

  1. 3
  2. 5
  3. 4
  4. None of these
edited by

4 Answers

Best answer
16 votes
16 votes

Hence,Option(C)4 is the correct choice. 

selected by
1 votes
1 votes
Just follow LRU with 3 page frames with initially page ref 1,2 stored .It will gives 4 page faults.

Hence,(C) 4  is correct.
Answer:

Related questions

6 votes
6 votes
2 answers
1
20 votes
20 votes
5 answers
2
Kathleen asked Sep 22, 2014
8,531 views
In which one of the following page replacement policies, Belady's anomaly may occur?FIFOOptimalLRUMRU