← BYTES
Unix IPC·Starter·Ref: 15.1.19

What is a process group, in the simplest terms, and why does it matter for signal delivery?

Have a question about this video? Mention reference 15.1.19 when you contact us.

a.A group of completely unrelated processes chosen at random by the kernel
b.A deprecated concept with no remaining purpose on modern Unix systems
c.A filesystem directory containing several executable files
d.A collection of related processes (typically a shell pipeline's commands) that share a process group ID, letting a single signal be delivered to ALL of them at once (e.g. via kill() with a negative PID, or Ctrl+C from a terminal)
When you run `cmd1 | cmd2 | cmd3` in a shell, all three processes typically share one process group -- so a single Ctrl+C (which the terminal driver translates into SIGINT delivered to the whole foreground process group) reaches every stage of the pipeline at once, rather than needing to be sent to each process individually. This grouping concept is foundational to how job control and terminal signal delivery work.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES15119#UnixIPC