Process lifecycle
Processes are running instances of programs. They have IDs, ownership, and resource usage.
Key states
- Running: Currently executing on CPU.
- Sleeping: Waiting for I/O or timing.
- Stopped: Paused by signals.
- Zombie: Exited but not reaped by parent.
Practical workflow
- Inspect with
psandtop. - Use
killfor signals, not just termination. - Log long-running jobs with explicit PID files.