Operating System

1:

The address sequence generated by tracing a particular program executing in a pure demand paging system with 100 records per page, with a 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 : C

Explanation :

When it tries to access 0100, it results in a page fault as the memory is empty. right now. So, it loads the second page (which has the addresses 100-199). Trying to access 200 will result in a page fault, as it is not in memory right now. So the third page with the addresses from 200 to 299 will replace the second page in memory. Trying to access 430 will result in another page fault. Proceeding this way, we find trying to access the addresses 0510, 0120, 0220, 0320 will all result in page faults. So, altogether 7 page faults.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.