Skip to content

Interrupt and Signal Delivery

Processor event handling and operating-system signal delivery redirect execution or apply a defined disposition.

Version
v1 · 2026-11-14 · History
Domain-specific #
14769
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Operating Systems, Computer Architecture → Computer Science & Software Engineering
Aliases
Interrupt

Core Idea

An interrupt diverts a processor from its current execution to handle an event. When a system returns to the interrupted execution, it preserves the state required by its conventions. The event is typically external to the instruction stream: a timer or device can request service while unrelated code is running. A handler can acknowledge the source and arrange further work; the processor may then return to the interrupted context.[1]

An operating-system signal is a related notification mechanism at a different layer. In Linux, a signal can be directed to a process or a particular thread. On delivery the process may run a registered handler, ignore it, or perform a signal-specific default action such as termination or stopping. A signal need not be generated by a hardware interrupt: another process can send one, and some arise from faults caused by the receiving thread itself.[2]

How would you explain it like I'm…

The Doorbell Bookmark

Imagine you're reading a book and the doorbell rings. You put in a bookmark, go answer the door, then come back and keep reading right where you stopped. A computer does the same thing when something needs it right away. There's also a kind of message, like a note handed to one person, that tells a program to do something special, like stop.

Pause, Handle, Resume

A computer is always busy following steps. An interrupt is when something outside — like a timer or a keyboard — needs attention, so the computer pauses what it's doing, saves its place, and runs a special helper to deal with it. Afterward it can go back to exactly where it stopped. A signal is a similar idea for programs: the operating system sends a program a message. The program can run its own helper, ignore it, or do the usual thing, like stopping. Signals can come from other programs, not just from hardware.

Interrupts and OS Signals

An interrupt makes a processor stop what it's running to handle some event, often something outside the current program, like a timer firing or a device needing service. The processor saves the state it needs, runs a handler that acknowledges the event and maybe schedules more work, and can then return to the interrupted code. An operating-system signal is a related idea at a higher level. In Linux, a signal is a notification sent to a process or a specific thread, which can run a handler it registered, ignore the signal, or take a default action like terminating or stopping. Signals don't have to come from hardware interrupts: another process can send one, or a thread can cause one by triggering a fault itself.

 

An interrupt diverts a processor from its current execution to service an event, typically one external to the instruction stream, such as a timer expiry or a device request arriving while unrelated code runs. To make resumption possible, the system preserves whatever execution state its conventions require. A handler then runs, which may acknowledge the interrupt source and defer further processing, after which the processor can return to the interrupted context. An operating-system signal is a related notification mechanism at a different layer of the system. In Linux, a signal may be directed at a process or at a particular thread, and on delivery the process either runs a registered signal handler, ignores the signal, or performs the signal's default action, such as termination or stopping. Signals are not necessarily caused by hardware interrupts: one process can send a signal to another, and some signals result from faults caused by the receiving thread's own execution.

Dispatch and Return

In Arm's A-profile exception model, interrupts such as IRQ and FIQ are asynchronous exceptions. The processor preserves an exception return address and status, selects an exception-vector entry, and software preserves further state as needed. After handling, an exception-return instruction can restore the saved execution state. Delivery may be deferred while an interrupt is masked; the particular routing, priority and saved-state rules depend on the architecture.[1]

Linux tracks each signal's disposition and each thread's signal mask. A blocked signal can remain pending until it is unblocked; a caught signal invokes a handler before control can return to the interrupted code. The default action need not return: it can terminate or stop a process. SIGKILL and SIGSTOP cannot be caught, blocked or ignored, so masking and user handlers are not universal properties of signal delivery.[2]

Shared State and Timing

An asynchronous notification can arrive while application state is being updated. Calling a nonreentrant library function from a signal handler can then disturb an operation already in progress. The POSIX async-signal-safe set and careful handling of shared state help avoid this problem; the Linux manual also describes blocking delivery around vulnerable operations as an alternative with practical limitations.[3] These rules concern signal handlers in that environment, rather than a universal recipe for every processor handler.

Boundaries

Interrupts and signals operate at different levels: hardware exception entry transfers processor control, while the operating system manages signal disposition and delivery to user execution. A synchronous instruction fault can lead to a signal, so treating all signals as external asynchronous interrupts would lose an important case. Arm groups both synchronous and asynchronous events under exceptions; terminology varies across systems. A language-level exception handler is a further distinct mechanism, with its own propagation and cleanup rules.[1][2]

Neighborhood in Abstraction Space

Interrupt and Signal Delivery sits in a sparse region of the domain-specific corpus (98th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Arm Limited, Exception model (2020), version 1.0. Exception model. registry ↩a ↩b ↩c

[2] Linux man-pages project, signal(7): Overview of signals. registry ↩a ↩b ↩c

[3] Linux man-pages project, signal-safety(7): Async-signal-safe functions. registry ↩