|
|
|
|
|
|
|
|
|
|
|
|
|
n |
To
accommodate as many processes as possible,
|
|
|
only a few
pieces of each process is maintained in
|
|
main memory
|
|
|
n |
But main
memory may be full: when the OS brings
|
|
one piece in,
it must swap one piece out
|
|
|
n |
The OS must
not swap out a piece of a process
|
|
|
just before
that piece is needed
|
|
|
n |
If it does
this too often this leads to trashing:
|
|
|
|
u |
The processor
spends most of its time swapping
|
|
|
pieces rather
than executing user instructions
|
|