Interrupt and Signal Delivery¶
Processor event handling and operating-system signal delivery redirect execution or apply a defined disposition.
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
Pause, Handle, Resume
Interrupts and OS Signals
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
- Operating-System Signal Delivery — 0.90
- SIGTRAP — 0.74
- Segmentation Fault — 0.74
- Endstop-triggered machine interruption — 0.73
- Dry Run (Testing) — 0.72
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 ↩