edited by
7,077 views
3 3 votes

Given reference to the following pages by a program

0,9,0,1,8,1,8,7,8,7,1,2,8,2,7,8,2,3,8,3

How many page faults will occur if the program has three page frames available to it and uses an optimal replacement?

  1. 7
  2. 8
  3. 9
  4. None of the above

2 Answers

Best answer
6 6 votes

   0     9   0    1     8     1    8    7     8    7    1     2     8    2     7    8     2    3     8    3  

      1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
  9 9 9 9 9 9 7 7 7 7 7 7 7 7 7 7 3 3 3
0 0 0 0 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8

F    F    H    F    F    H     H    F   H     H    F    H   H    H    H    H    H    F    H    H

so total no. of page fault = 7

edited by
Answer:
Position:
Show:

Related questions

8 8 votes
1 answers 1 answer
7.4k
7.4k views
sh!va asked May 7, 2017
7,381 views
Estimation at software development effort for organic software in basic COCOMO is:E = 2.0 (KLOC) 1.05 PME = 3.4 (KLOC) 1.06 PME = 2.4 (KLOC) 1.05 PME = 2.4 (KLOC) 1.07...
9 9 votes
5 answers 5 answers
8.9k
8.9k views
go_editor asked Sep 28, 2014
8,858 views
In the context of modular software design, which one of the following combinations is desirable?High cohesion and high couplingHigh cohesion and low couplingLow cohesion ...
8 8 votes
2 answers 2 answers
7.5k
7.5k views
sh!va asked May 7, 2017
7,479 views
Which of the following statement is true?Hard real time OS has less jitter than soft real time OSHard real time OS has more jitter than soft real time OSHard real time OS...
5 5 votes
2 answers 2 answers
8.8k
8.8k views
sh!va asked May 7, 2017
8,839 views
The Linux command mknod myfifo b 4 16will create a character device if user is rootwill create a named pipe FIFO if user is rootwill create a block device if user is root...