Signal
An operating-system signal is an asynchronous notification delivered to a process to report an event or request handling.
Modern C, Third Edition
An asynchronous signal is an externally generated notification delivered to a running program independently of its current instruction sequence.
- How it is used
- Uses signal handlers to address exceptional events that interrupt ordinary program control flow.
- How deep it goes
- Distinguishes synchronous and asynchronous interrupts, describes handler control flow, and illustrates registration and conditional counting.
- Examples
- Illustrates deadline and termination requests, faulting instructions, handler registration, and a failed SIGKILL setup.
- What you can do after
- Evaluate and understand signal interruption, handler setup, and the multithreading restriction.
Modern C
- How it is used
- Introduces signals as a way to handle external exceptional conditions that alter normal control flow.
- How deep it goes
- Explains interrupt types, handler installation and return, and safe information exchange, with example implementations.
- Examples
- Uses a signal-counting handler, an installation wrapper, and sample signal registration results.
- What you can do after
- Operate/configure C signal handlers and apply the rule of recording conditions for handling outside the handler.
Rust in Action: Systems programming concepts and techniques
A signal is an asynchronous operating-system notification delivered to a process to report an event or request handling.
- How it is used
- Uses signals to introduce interprocess communication and model aspects of interrupts without directly manipulating the kernel.
- How deep it goes
- Distinguishes signals from interrupts, describes default actions, and outlines a minimal handler pattern.
- Examples
- Uses SIGINT, SIGTERM, and SIGKILL to illustrate termination, and SIGSTOP and SIGCONT to illustrate job control.
- What you can do after
- Evaluate signal behavior by distinguishing default termination, unhandleable signals, and a minimal handler pattern.
Read how Rust in Action: Systems programming concepts and techniques explains signal →
Also covered in
What to know first
- atomic_flagAn atomic flag is a standard atomic type representing a flag and providing indivisible operations to set or clear it for synchronization.
- atomic typeAn atomic type is a type whose supported accesses and operations are indivisible with respect to concurrent execution and provide defined synchronization semantics.
- lock-freeLock-free is a concurrency progress guarantee under which at least one operation completes within a finite number of steps despite contention, without relying on mutual-exclusion locks.
- lockingLocking is a synchronization technique that controls concurrent access to a shared resource or protected operation.
Related concepts
- SIGTERMincludes · SIGTERM is an operating-system signal conventionally used to request that a process terminate, typically allowing orderly shutdown.
Questions about signal
What is signal?
An operating-system signal is an asynchronous notification delivered to a process to report an event or request handling.
Which Manning books explain signal?
Modern C, Third Edition, Modern C and Rust in Action: Systems programming concepts and techniques.
What should I know before learning signal?
Manning books that teach signal usually introduce atomic_flag, atomic type, lock-free and locking first.
What kinds of signal are there?
Kinds of signal include SIGINT, SIGTERM, SIGCONT, SIGKILL and SIGSTOP.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


