Page faults - Example - Operating System

Q.  A program is executing in a pure demand paging system with 100 records per page with 1 free main memory frame. The address sequence that is generated by tracing this program is recorded as follows,
0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370
What are the number of page faults?

- Published on 25 Aug 15

a. 8
b. 11
c. 7
d. 12

ANSWER: 7
 

    Discussion

  • Nirja Shah   -Posted on 23 Nov 15
    - The no of records per page is 100. Hence, the page no corresponding to these address will be 1,2,4,4,5,5,5,1,2,2,2,3,3

    - Only one frame is available along with pure demand paging

    - The page fault will occur for frame nos. 1,2,4,5,1,2,3

    - Hence no of page fault is =7

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)