Working with Python and Linux System Processes

Overview

  • process group
    • has process group leader
      • the process that creates the group and whose PID becomes the PGID of the group.
    • one or more processes sharing the same process group identifier (PGID)
  • session
    • collection of process groups
    • has session leader, which is process that started the new session

Command Reference

# Views processes with more details
ps -A -o pid,sid,pgid,comm