edited by
311 views
5 votes
5 votes
The address sequence generated by tracing a particular program executing in a pure demand based paging system with $100$ records per page with $2$ free main memory frames and LRU replacement policy is recorded as follows. The number of page faults will be
$$0100, 0432, 0101, 0612, 0102, 0103, 0104, 0101, 0611, 0102, 0103, 0104, 0101$$
edited by

1 Answer

Best answer
6 votes
6 votes
$0100$ - $1$ page fault. Records $100-199$ in memory.

$0432$ - $2$ page faults. Records $400-499$ in memory.

$0101$ - page hit.

$0612$ - $3$ page faults. Records $600-699$ in memory. Records $400-499$ replaced.

$0102$ - page hit.

$0103$ - page hit.

$0104$ - page hit.

$0101$ - page hit.

$0611$ - page hit.

$0102, 0103, 0104, 0101$ - page hits.

So, total number of page faults $= 3.$
selected by
Answer:

Related questions