edited by
2,068 views
0 votes
0 votes

 

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,0510,0530,0560,0120,0220,0240,0260,0320,0370.$

  1. $15,4$
  2. $6,4$
  3. $7,2$
  4. $4,6$
edited by

1 Answer

0 votes
0 votes

0100 - page fault, addresses till 199 in memory

0200 - page fault, addresses till 299 in memory

0430 - page fault, addresses till 529 in memory

0499 - no page fault

0510 - no page fault

0530 - page fault, addresses till 629 in memory

0560 - no page fault

0120 - page fault, addresses till 219 in memory

0220 - page fault, addresses till 319 in memory 

0240 - no page fault

0260 - no page fault

0320 - page fault, addresses till 419 in memory 

0410 - no page fault

So, 7 is the answer- (C)

Answer:

Related questions

3 votes
3 votes
2 answers
2
admin asked Apr 1, 2020
930 views
If a processor has $32$-bit virtual address, $28$-bit physical address, $2$ kb pages. How many bits are required for the virtual, physical page number?$17,21$$21,17$$6,10...
1 votes
1 votes
1 answer
4
admin asked Apr 1, 2020
1,053 views
A decimal has $25$ digits. The number of bits needed for its equivalent binary representation is approximately,$50$$74$$40$$60$