The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+12 votes

The following page addresses, in the given sequence, were generated by a program:

$\text{1 2 3 4 1 3 5 2 1 5 4 3 2 3}$

This program is run on a demand paged virtual memory system, with main memory size equal to $4$ pages. Indicate the page references for which page faults occur for the following page replacement algorithms.

  1. LRU
  2. FIFO

Assume that the main memory is initially empty

in Operating System by Veteran (52.1k points)
edited by | 820 views

1 Answer

+13 votes
Best answer
LRU :  $1,2,3,4,5,2,4,3,2$
FIFO : $1,2,3,4,5,1,2,3$
by Veteran (60.2k points)
edited by

Also the number of page faults:

LRU: 9


$(A)LRU:$ miss rate$=\frac{9}{14}$

$(B)FIFO:$ miss rate$=\frac{8}{14}$

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
50,376 questions
55,839 answers
91,393 users