Linux & OS Internals
Process lifecycle
Explain how a process moves from creation to exit, why an exited child can stay as a zombie until its parent calls wait, and how orphans are handled.
What you will be able to do
- Explain why an exited child stays in the process table until someone waits for it.
- Decide who should reap a zombie and find its parent with ps.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- Debugging "Permission denied"Beginner · 5 min
A file that shows -rw-r--r-- can still be denied. Learn the three checks the kernel makes, and the one command that shows which one failed.
- Mount namespacesBeginner · 4 min
Mount namespaces provide isolated filesystem mount views.
- fork exec waitIntermediate · 4 min
Explain how fork and exec create a new program, how the parent collects the child's status, and why an inherited descriptor can keep a port or pipe open.
- Threads and pthreadsIntermediate · 4 min
Explain how threads share a process's memory and descriptors, why shared memory needs locks, and why a higher thread count does not speed up lock-bound work.
- CPU scheduling classesIntermediate · 4 min
Explain how Linux picks the next thread by scheduling class, why real-time policies outrank normal ones, and what nice values change inside the normal class.
- Context switchingIntermediate · 4 min
Explain what a context switch costs in CPU time, how voluntary and nonvoluntary switches differ, and how to read switch rates against a healthy baseline and the request…