 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Swapping
|
|
|
– |
Move
process from memory to disk (swap space)
|
|
|
• |
Process
is blocked or suspended
|
|
|
– |
Move
process from swap space to big enough partition
|
|
|
• |
Process
is ready
|
|
|
• |
Set
up Base and Limit registers
|
|
|
|
– |
Memory
Manager (MM) and Process scheduler work together
|
|
|
• |
Scheduler
keeps track of all processes
|
|
|
|
• |
MM
keeps track of memory
|
|
|
• |
Scheduler
marks processes as swap-able and notifies MM to swap in
|
|
processes
|
|
|
|
• |
Scheduler
policy must account for swapping overhead
|
|
|
• |
MM
policy must account for need to have memory space for ready
|
|
|
processes
|
|
|
| • |
More
in §4.2 of Tannenbaum
|
|