previous | start | next

Process Groups

In addition to having a pid, each process belongs to exactly one process group.

For example, if a parent process creates several children, then the parent and all its children are in the same process group.

The process group id in this case would be the pid of the parent.

Example:

  1. Process with pid = 1400 has group id also = 1400.
  2. Process with pid = 1400 forks 2 children with pids 1401 and 1405.
  3. Process 1401 forks one child with pid = 1407.

What are the group ids?

Process id Group id
1400 1400
1401  
1405  
1407  


previous | start | next