AlgoViz

Process creation, waiting and exit

easy 7 min

A process owns an address space, descriptors and a place in the process tree.

Where it shows up

The same pattern appears across everyday software.

  • Why finished children still occupy slots

    A job runner creates short-lived converters. RSS stays stable, yet eventually it cannot create another process. Count children by state and parent, then compare the counts across two intervals. A growing set of zombies under one parent points to a missing wait path. Increasing the PID limit only delays recurrence if exits keep accumulating.

  • Verifying the intervention

    Reap all completed children and run the error path again. The count should return to its previous floor. If the task count rises but no children are in Z, inspect live worker growth and the group PID limit.