Paging Implementing Paging: Not Have To Be Loaded Into A Contiguous
Paging Implementing Paging: Not Have To Be Loaded Into A Contiguous
Paging Example
Paging Example
(cont.)
relative address within program: virtual address:
1501 page# = 1, offset = 478
frame main frame main frame main 0000010111011110 000001 0111011110
number memory number memory number memory
0 0 A.0 0 A.0 program D process D
1 1 A.1 1 A.1
2 2 A.2 2 A.2
3 3 A.3 3 A.3
4 4 4 B.0 page 0
5 5 5 B.1
6 6 6 B.2
7 7 7
8 8 8
9 9 9 478
10 10 10
11 11 11 1501 page 1
12 12 12
13 13 13
14 14 14
page table
for Process D
page table page table page table page table list of
for Process A for Process B for Process C for Process D free frames 0 4
0 0 0 0 7 0 4 13 1 5
1 1 1 1 8 1 5 14 2 6
2 2 2 2 9 2 6 3 11
3 3 3 10 3 11 4 12
4 12 000101 0111011110
physical address:
frame# = 5, offset = 478