Anonymous user menu

Gate1995_2.7.

The address sequence generated by tracing a particular program executing in a pure demand paging system with 100 records per page with 1 free main memory frame is recorded as follows. What is the number of page faults?
0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370
(a) 13
(b) 8
(c) 7
(d) 10

Answer

Discuss

1Comment
Amit Pal @amitpal101
25 Sep 2016 08:50 pm

page no corresponding to given address: 

0100-1

0200-2

0430-5

0499-5

0510-6

0530-6

0560-6

0120-2

0220-3

0240-3

0260-3

0320-4

0370-4

no of available frame = 1

so only on demand we have to insert the page in frame . 

1,2,5,6,2,3,4  (order in which page faults will occur)
so total 7 page faluts will be there.