Lesson 2
Lesson 2
I. Hardware interrupt
A hardware interrupt is an electronic signal from an external
hardware device that indicates it needs attention from the OS.
One example of this is moving a mouse or pressing a keyboard
key. In these examples of interrupts, the processor must stop to
read the mouse position or keystroke at that instant.
Maskable interrupts
In a processor, an internal interrupt mask register selectively
enables and disables hardware requests. When the mask bit is
set, the interrupt is enabled. When it is clear, the interrupt is
disabled. Signals that are affected by the mask are maskable
interrupts.
Non-maskable interrupts
In some cases, the interrupt mask cannot be disabled so it does
not affect some interrupt signals. These are non-maskable
interrupts and are usually high-priority events that cannot be
ignored.
Spurious interrupts
Also known as a phantom interrupt or ghost interrupt,
a spurious interrupt is a type of hardware interrupt for which no
source can be found. These interrupts are difficult to identify if a
system misbehaves. If the ISR does not account for the
possibility of such interrupts, it may result in a system deadlock.