• edited by
173 views
0 0 votes

Consider in a system the following page replacement policies are used:

  • FIFO (First-In First-Out): Evicts the page that entered memory earliest.
  • LRU (Least Recently Used): Evicts the page that was least recently referenced.
  • OPT (Optimal): Evicts the page that will not be used for the longest time in the future.

Which of the following statements is/are correct?

  1. LRU can never perform worse than FIFO for the same reference string and number of page frames.
  2. LRU and FIFO perform the same when all referenced pages are distinct.
  3. FIFO suffers from Belady's anomaly, but LRU and OPT do not.
  4. Increasing the number of frames in FIFO incurs the same page misses as of LRU.

1 Answer

1 1 vote
A: False; LRU Can have more misses then FIFO
Consider the reference string and number of page frames 3

$123412512345$

FIFO: 9 miss

LRU: 10 miss

B: True; LRU works the same as FIFO when referenced pages are distinct. Consider the reference string and number of page frames 3

$12345678123$

D: False; increasing the number of page frames in FIFO does not improve the rate page misses then LRU, maybe it becomes worse than itself due to Belady's anomaly.
Answer:
Position:
Show:

Related questions

2 2 votes
1 1 answer
498
498 views
GO Classes asked Sep 15, 2025
498 views
Void main() { int a = 0; for (int i = 0; i < 4; i++) { if (fork() == 0) { a++; return ; } else { a++; ...
2 2 votes
2 2 answers
212
212 views
GO Classes asked Sep 15, 2025
212 views
A system is composed of four processes, $\{\mathrm{P} 1, \mathrm{P} 2, \mathrm{P} 3, \mathrm{P} 4\}$, and two types of consumable resources, $\{\mathrm{R} 1, \mathrm{R} 2...
3 3 votes
1 1 answer
194
194 views
GO Classes asked Sep 15, 2025
194 views
Which of the following statements are FALSE about threading?Threads share an address space with other threads in the same process.Threads share register state and stack i...
2 2 votes
1 1 answer
287
287 views
GO Classes asked Sep 15, 2025
287 views
Which of the following problems are associated with spin locks?DeadlockStarvation due to lack of fairnessPriority inversion cannot occurContext-switch overhead is elimina...