Memory Management (cont)
Consider a scenario with multiple processes loaded in memory:
If we do on-the-fly address mapping, we need to ...
- remember base address for each process (process table)
- when process (re)starts, load base into mapping hardware
- interpret every address addr in program as base+addr
Each process sees its own address space as [0 .. psize-1]
- process can be loaded anywhere in memory without change
|