Below is a complete, detailed study guide covering all topics from Part 4 of your Unix course on Process Management. This guide explains every concept—from definitions and process attributes to creation, state transitions, and termination—with code snippets (where applicable) and thorough explanations. Use this guide as your sole study resource to prepare for your exam.
Definition of a Process:
Key Points:
Every process in Unix is characterized by several attributes that help the system manage it effectively:
PID (Process Identifier):
A unique numerical value that identifies a process.
Example: The first process started by the system (typically the init process) has a PID of 1.
PPID (Parent Process Identifier):
The PID of the process’s parent (the process that created it).
Note: Every child process holds the PPID of its parent.
UID (User Identifier) and GID (Group Identifier):
These identify the user and the group that initiated (or owns) the process. They help in enforcing permissions and access rights.
Hierarchy Example:
init that handles user authentication.