C & Unix

wait, Exit Status and Process Lifecycles

8:24

Plays from YouTube. Watch on YouTube

Why can a child process finish executing and still appear in the process table?

Meet wait, Exit Status and Process Lifecycles: an original animated lesson in C and Unix systems programming.

We start with process execution states, wait and encoded child exit information.

From there, we contrast normal exits with signal termination, zombies with orphans, and blocking wait with waitpid and WNOHANG.

The big idea: Creating a child and collecting its termination status are distinct responsibilities.

C and Unix explained visually, one concept at a time.