CS FundamentalsModerateGATE CS

A parent process exits without calling wait() while its child is still running. What happens to the child?

  1. A. It becomes an orphan and is adopted by init (or a subreaper), which later reaps it
  2. B. It is immediately killed by the kernel
  3. C. It becomes a zombie at once
  4. D. It keeps running but can never terminate

Correct answer: A. It becomes an orphan and is adopted by init (or a subreaper), which later reaps it

An orphan is re-parented to init/systemd (or a designated subreaper), which calls wait() on it when it exits. A zombie is the opposite case: a dead child whose parent has not yet waited.

More Operating Systems questions

Exams that ask this topic