Swapping
Swapping
In swapping, part or all of a process is moved from main memory to disk.
- Notice that swapping is an O Operation
When a process is swapped out, it becomes Suspended State.
Swapping
\neq
SuspensionA process can be suspended without necessarily being swapped. A suspended process is merely another kind of state.
Swapping mechanism (described on p.144 of SE350 book):
- The ready queue is empty
- Blocked processes moved to blocked/suspend queue
- Ready/suspend processes moved to ready process