Zombie and Orphan Processes | OS Interview | Skill-Lync Resources
Medium Operating Systems Processes & Threads

What are zombie and orphan processes?

Answer

Zombie process: child has terminated but parent hasn't read its exit status (via wait()). Entry remains in process table with exit code. Zombies consume PID resources. Fix: parent should wait() for children, or use signal handler for SIGCHLD. Orphan process: parent terminates before child. The init process (PID 1) adopts orphans and will wait() for them. Orphans continue normal execution; zombies are already dead but not reaped.

Master These Concepts with IIT Certification
IIT Certified

Master These Concepts with IIT Certification

175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.

Relevant for Roles

Software Engineer Systems Developer DevOps Engineer