210-250 · Question #104
Which process continues to be recorded in the process table after it has ended and the status is returned to the parent?
The correct answer is C. orphan. An orphan process is a child process whose parent has terminated, leaving it running without an active parent until it is re-parented by init and its exit status is eventually collected.
Question
Which process continues to be recorded in the process table after it has ended and the status is returned to the parent?
Exhibit
Options
- Adaemon
- Bzombie
- Corphan
- Dchild
How the community answered
(54 responses)- A4% (2)
- C94% (51)
- D2% (1)
Why each option
An orphan process is a child process whose parent has terminated, leaving it running without an active parent until it is re-parented by init and its exit status is eventually collected.
A daemon is a long-running background process that provides system services - it is defined by its role, not by the termination state of its parent.
A zombie process is one that has already completed execution but remains in the process table because its parent has not yet called wait() to collect its exit status - it is the child that has ended, not the parent.
An orphan process is created when a parent process terminates before its child process finishes. The orphaned child continues to run and remains in the process table, and the operating system re-parents it to init (PID 1), which will collect its exit status when it eventually completes. This is distinct from a zombie, where the child has already ended but the parent has not yet retrieved the exit status.
A child process is simply any process spawned by another process and does not specifically describe a process that persists after its parent has ended.
Concept tested: Orphan process lifecycle and re-parenting in Unix/Linux
Source: https://man7.org/linux/man-pages/man2/wait.2.html
Topics
Community Discussion
No community discussion yet for this question.
