GATE | Gate IT 2008 | Question 39

Assume that a main memory with only 4 pages, each of 16 bytes, is initially empty. The CPU generates the following sequence of virtual addresses and uses the Least Recently Used (LRU) page replacement policy.

0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88, 92

How many page faults does this sequence cause? What are the page numbers of the pages present in the main memory at the end of the sequence?
(A) 6 and 1, 2, 3, 4
(B) 7 and 1, 2, 4, 5
(C) 8 and 1, 2, 4, 5
(D) 9 and 1, 2, 3, 5


Answer: (B)

Explanation: 2008_41_sol

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.