Advanced Linux & Shell Scripting
Q82 / 100

What is the difference between a "zombie" process and an "orphan" process?

Correct! Well done.

Incorrect.

The correct answer is A) A zombie has completed execution but still has a process table entry because its parent has not yet read (reaped) its exit status; an orphan is a process whose parent terminated first, causing it to be re-parented, typically to init/PID 1

A

Correct Answer

A zombie has completed execution but still has a process table entry because its parent has not yet read (reaped) its exit status; an orphan is a process whose parent terminated first, causing it to be re-parented, typically to init/PID 1

Explanation

Zombies are "dead" processes awaiting their exit status to be collected via wait()/waitpid() by their parent — they consume a process table entry (PID) but no other resources; orphans continue running normally but are adopted by init (or a subreaper) when their original parent exits.

Progress
82/100