The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
495 views

Consider a virtual page reference string 1, 2, 3, 2, 4, 2, 5, 2, 3, 4. Suppose LRU page replacement algorithm is implemented with 3 page frames in main memory. Then the number of page faults are _____

  1. 5
  2. 7
  3. 9
  4. 10
asked in Operating System by Boss (10.8k points)
recategorized by | 495 views

1 Answer

0 votes

 For the 1st 3 pages , there would be page faults. Next 2 is already in frame. Next least recently used 1 is replaced by 4. Next 2 is already in frame. Then LRU 3 is replaced by 5. Then 2 is already in frame. Then 4 is replaced by 3 and 5 is replaced by 4. Hence a total of 7 page faults 

 

 

answered by Loyal (7k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,807 questions
54,504 answers
188,309 comments
74,890 users