The operating system's virtual memory management routines are responsible for loading virtual pages into physical pages.
For each virtual page, it must be possible to find which physical page contains that virtual page.
Associated with each process is a page table in which the virtual memory management records this information.
For the previous example, part of the page tables for process 1 and process 2:
Process 1 | |
---|---|
Virtual page | Physical page |
0x0804800 | 0x0600000 |
0x0804900 | 0x0601000 |
0x0804a00 | 0x0606000 |
Process 2 | |
---|---|
Virtual page | Physical page |
0x0804800 | 0x0604000 |
0x0804900 | 0x0602000 |
0x0804a00 | 0x0607000 |