The process group of a listed process as ps prints it: a non-negative
integer. It is 0 for a process the kernel started outside any group:
procps on Linux lists kernel threads such as kthreadd in group 0, and
in some containers and VMs pid 1 as well. No client tarlatan starts is in
group 0, since each leads its own group, so such a row is never a member.
The process group of a listed process as
psprints it: a non-negative integer. It is 0 for a process the kernel started outside any group: procps on Linux lists kernel threads such askthreaddin group 0, and in some containers and VMs pid 1 as well. No client tarlatan starts is in group 0, since each leads its own group, so such a row is never a member.