ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Page replacement and thrashing
3/3/2021 2
3/3/2021 3
3/3/2021 4
7 7
0
7
0
1
2
0
1
2
3
1
2
3
0
4
3
0
4
2
0
4
2
3
0
2
3
0
1
3
0
1
2
7
1
2
7
0
2
7
0
1
7 0 1 2 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
0
Number of page fault = 15
3/3/2021 5
7 7
0
7
0
1
7
0
1
2
3
0
1
2
3
4
1
2
3
4
0
2
3
4
0
1
2
4
0
1
2
7
0
1
7 0 1 2 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
0
Number of page fault = 10
Page fault decreases with the increase of frame size
3/3/2021 6
For some page-replacement algorithms e.g., FIFO, page fault increases with the increase
in frame size
This weird scenario is known as Belady’s anomaly
3/3/2021 7
3/3/2021 8
3/3/2021 9
7 7
0
7
0
1
2
0
1
2
0
3
2
4
3
2
0
3
2
0
1
7
0
1
7 0 1 2 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
0
Number of page fault = 9
3/3/2021 10
3/3/2021 11
7 7
0
7
0
1
2
0
1
2
0
3
4
0
3
0
3
2
1
3
2
7
0
1
7 0 1 2 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
0
Number of page fault = 12
4
0
2
4
3
2
1
0
2
3/3/2021 12
3/3/2021 13
3/3/2021 14
7
0
7
1
0
7
2
1
0
7
0
3
2
1
7
7 0 1 2 0 7
3
3
2
1
0
7
7
0
3
2
1
3/3/2021 15
3/3/2021 16
3/3/2021 17
3/3/2021 18
3/3/2021 19
3/3/2021 20

More Related Content

Page replacement and thrashing