interrupt handler

(redirected from Interrupt service routine)
Also found in: Acronyms.

interrupt handler

[′int·ə‚rəpt ‚hand·lər]
(computer science)
A section of a computer program or of the operating system that takes control when an interrupt is received and performs the operations required to service the interrupt.

interrupt handler

(software)
A routine which is executed when an interrupt occurs. Interrupt handlers typically deal with low-level events in the hardware of a computer system such as a character arriving at a serial port or a tick of a real-time clock. Special care is required when writing an interrupt handler to ensure that either the interrupt which triggered the handler's execution is masked out (inhibitted) until the handler exits, or the handler is re-entrant so that multiple concurrent invocations will not interfere with each other.

If interrupts are masked then the handler must execute as quickly as possible so that important events are not missed. This is often arranged by splitting the processing associated with the event into "upper" and "lower" halves. The lower part is the interrupt handler which masks out further interrupts as required, checks that the appropriate event has occurred (this may be necessary if several events share the same interrupt), services the interrupt, e.g. by reading a character from a UART and writing it to a queue, and re-enabling interrupts.

The upper half executes as part of a user process. It waits until the interrupt handler has run. Normally the operating system is responsible for reactivating a process which is waiting for some low-level event. It detects this by a shared flag or by inspecting a shared queue or by some other synchronisation mechanism. It is important that the upper and lower halves do not interfere if an interrupt occurs during the execution of upper half code. This is usually ensured by disabling interrupts during critical sections of code such as removing a character from a queue.
References in periodicals archive ?
INTEGRITY's microkernel design, virtual device drivers, and partitioning architecture enable designers to build truly reliable space-based systems wherein any part of the software, including application programs, RTOS middleware, and even the kernel and interrupt service routines, can be patched, replaced, or upgraded.
EZMac runs as two interrupt service routines to fully service the radio requirements.
Operating in the background in two interrupt service routines (ISRs), EZMac manages the delivery of signals and short packets from the transmitter to the receiver, between nodes.
The complex interactions of the system, including execution of application code, interrupt service routines and context switches are brought to light.
Other class titles include: "Designing With Real-Time Kernels," "Adding Wireless Communication Capability," "Debugging Interrupt Service Routines," and "Software Reuse Solutions.
5 gives developers the ability to manage the impact that interrupt service routines (ISRs) have on influencing the accuracy of performance results.
This requires interrupt service routines or polling mechanisms to establish transfers of information from the DSP to the AAL2 SAR, which loads the CPU.
This ensures that the stack of tasks that must be handled quickly, such as driver tasks and interrupt service routines, are kept in internal memory and tasks that are not in the critical path, such as background control tasks, are stored in slower and cheaper external memory.
Recognizing that identifying problems in complex multitasking applications is extremely tedious and time-consuming, TASKING gives Motorola DSP56xxx developers the ability to observe intertask communication, synchronization of mechanisms and interrupt service routines.