Linux Processes

Process lifecycle, states, PID namespaces, fork/exec, zombie processes, and process trees.

Overview

Overview Every running program in Linux is a process: an instance of an executable with its own address space, file descriptors and credentials. Processes are organized in a tree rooted at PID 1 (init or systemd). Each process records its parent's process ID (the PPID), and when a parent exits before its children, those children are re-parented to PID 1.

Key concepts

  • Process states
  • fork/exec
  • Zombie
  • PID namespace
  • PPID / reparenting

Interview questions

  • Your server load average is 50 but CPU usage is only 5%. What is happening and how do you diagnose it?
  • What is the difference between a zombie process and an orphan process?

Sign up free to read the full topic

More Linux topics

Start free on Cariara · Coding problems · System design studio