The Gateway to Computer Science Excellence
0 votes

A memory page containing a heavily used variable that was initialized very early and is in constant use is removed when
(a) LRU page replacement algorithm is used
(b) FIFO page replacement algorithm is used
(c) LFU page replacement algorithm is used
(d) None of the above

in Operating System by | 820 views

2 Answers

+7 votes
Best answer

LRU can't be used as the page is still is in use , so it will be in most high priority.

LFU can't be used as it has been accessed several time , it's frequency value will be larger.

FIFO can do it as it only considers the time the page came in RAM. So the page can be deleted by FIFO . also from that statement we can assume FIFO wasn't in use till now.

selected by
+2 votes

(b) FIFO page replacement algorithm is used
Here, the first IN page is removed when pagetable is full regardless of the usage of the page. 


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
52,345 questions
60,497 answers
95,319 users