liveBook · Manning

Signal

An operating-system signal is an asynchronous notification delivered to a process to report an event or request handling.

How 3 Manning books explain it

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.

Read how Modern C, Third Edition explains signal →

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.

Read how Modern C explains signal →

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

Related concepts

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.