5.1 Unit5 Int-Handling
5.1 Unit5 Int-Handling
Process in execution
Returns
I/O
Interrupt
Interrupt
Service
Routine
When a program throws an interrupt a device searching routine is performed. The program is
reentered after the interrupt is handled.
Interrupt handlers are usually short sections of code that are designed to handle the
immediate needs of the device and return control to the operating system or user
program.
Increment PC
Decode and
Execute instr.
No
Int request line
Restore PC
active
Yes
Interrupt
Store PC service
Routine