 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
n |
A process
switch may occur whenever the
|
|
|
OS has gained
control of CPU. ie when:
|
|
|
|
u |
Supervisor Call
|
|
|
|
F |
explicit request
by the program (ex: file open).
|
|
|
The process will
probably be blocked
|
|
|
|
u |
Trap
|
|
|
|
F |
An error
resulted from the last instruction. It may
|
|
cause the
process to be moved to the Exit state
|
|
|
|
u |
Interrupt
|
|
|
|
F |
the cause is
external to the execution of the
|
|
|
current
instruction. Control is transferred to IH
|
|