Interrupts | ||
An interrupt is a signal
from a device to the CPU.
Hardware may send interrupts...
Software may send interrupts...
There is a special register in the CPU called the interrupt register. When an interrupt occurs one of the bits is set to 1 - each bit (flag) represents a different type of interrupt. The processor will check this flag regularly to see if any interrupts have occurred. When the CPU receives an interrupt request (IRQ) ...
There may be more than one interrupt occurring at the same time. There is a priority associated with each interrupt and the processor will service the interrupt with the highest priority first. A high-level interrupt may interrupt the service of a lower level interrupt. Priority levels may depend on...
Eg Hardware failure would have a high priority....printer out of paper would be a low priority.
|
||