(A) 9 and 6
(B) 10 and 7
(C) 9 and 7
(D) 10 and 6
Answer B.
Explanation.
In optimal page replacement theory, remove
the page from frame, is not required in nearest future.
The page reference string is :
1 2 3 2 5 6 3 4 6 3 7 3
1 5 3 6 3 4 2 4 3 4 5 1
Optimal page replacement.
Page read
|
Page fault.
|
Frame(size=4)
|
1
|
0
|
1
|
2
|
0
|
12
|
3
|
0
|
123
|
2
|
0
|
123
|
5
|
0
|
1235
|
6
|
1
|
1356
|
3
|
1
|
1356
|
4
|
2
|
1364
|
6
|
2
|
1364
|
3
|
2
|
1364
|
7
|
3
|
1367
|
3
|
3
|
1367
|
1
|
3
|
1367
|
5
|
4
|
1365
|
3
|
4
|
1365
|
6
|
4
|
1365
|
3
|
4
|
1365
|
4
|
5
|
1345
|
2
|
6
|
2345
|
4
|
6
|
2345
|
3 4 5
|
6
|
2345
|
1
|
7
|
1345.
|
Similarly LRU,FIFO
No comments:
Post a Comment
Note: only a member of this blog may post a comment.