IRQ (Interrupt Request)
Commonly used in Hardware, Operating Systems
An Interrupt Request (IRQ) is a hardware signal sent to the processor that temporarily halts the execution of the current program to attend to a specific event or condition. It enables the processor to respond quickly to external or internal events that require immediate attention, such as input from a device or a system error.
How It Works
When a hardware device or internal component needs the processor's attention, it sends an IRQ signal to notify the CPU. The processor then pauses the current task, saving its state so it can resume later. The CPU then jumps to a predefined interrupt handler or service routine that addresses the specific event, such as reading data from a keyboard or handling a network packet. After the interrupt has been serviced, the processor restores its previous state and continues executing the interrupted program.
IRQ lines are typically numbered and assigned to specific hardware devices, allowing the system to identify the source of the interrupt. Modern systems often use interrupt controllers to manage multiple IRQs, prioritising them and handling simultaneous requests efficiently. This setup ensures that critical events are addressed promptly while maintaining overall system stability and performance.
Common Use Cases
- Responding to keystrokes or mouse movements in a computer system.
- Handling incoming data from network interfaces.
- Managing disk input/output operations.
- Detecting and responding to hardware errors or alerts.
- Processing signals from peripheral devices like printers or scanners.
Why It Matters
Understanding IRQs is essential for IT professionals involved in system design, hardware configuration, and troubleshooting. Proper management of interrupt requests ensures that systems respond efficiently to events, maintain stability, and optimise performance. For certification candidates, knowledge of IRQs is fundamental to mastering hardware architecture, device management, and system programming, which are critical components of many IT and networking roles.