pgrp
A process group (referred to as a pgrp in some contexts) is a collection of one or more processes that can be managed as a unit for job control and signal delivery in Unix-like operating systems. Each process group has a process group ID (PGID), and the PGID is typically the ID of the group’s leader process.
Process groups exist within a larger structure called a session. A session can contain multiple process groups,
Creation and management of process groups commonly involve system calls such as setpgid and setsid. The setpgid
Signaling is a key aspect of process groups. The kill system call may target a whole group
In practice, pgrps are used to implement job control in shells. The shell can start, stop, and