reopened by
1,727 views
2 votes
2 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,0499,0510,0530,0560,0120,0220,0240,0260,0320,0370.$

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

2 Answers

0 votes
0 votes

when new range address come then fault occur otherwise  hit

Address Range   [X.00 to X.99]  {X=1,2,3,4,5}

1. 100 -> range [100,199] =  fault

2. 200 -> range [200, 299] =  fault

3. 430 -> range [430 , 529] =  fault

4. 499 -> prev frame =  hit

5. 510 -> prev frame = hit

6. 530 -> range [530 , 629] -=fault

7. 560 -> prev frame = hit

8. 120 -> range [120 , 219] = fault

9. 220 -> range [220 , 319] = fault

10. 240 -> prev frame = hit

11. 260 -> prev frame = hit

12. 320 -> range [320 , 419] = fault

13. 370 -> prev frame = hit

Therefore, total fault =7

I don't understand why 2 numbers are there in each option.

Ref: https://gateoverflow.in/2619/gate1995-2-7

Answer:

Related questions

3 votes
3 votes
2 answers
2
admin asked Apr 1, 2020
3,438 views
Which of the following scheduling algorithms could result in starvation?PriorityRound RobinFCFSNone of the above
0 votes
0 votes
2 answers
4