CS FundamentalsHardGATE CS · Product-company placement

Which statements are correct? 1. A child that has exited but whose parent has not called wait() is a zombie. 2. A zombie still holds its full memory image until it is reaped. 3. When a parent exits first, its running children are re-parented to init (or a subreaper). 4. Killing a zombie with SIGKILL removes it.

  1. A. 1 and 3 only
  2. B. 1, 2 and 3 only
  3. C. 1, 3 and 4 only
  4. D. All four

Correct answer: A. 1 and 3 only

A zombie keeps only its process-table entry and exit status, not its memory, so 2 is false. It is already dead and cannot be killed; it disappears when the parent (or init after re-parenting) calls wait(), so 4 is false.

More Operating Systems questions

Exams that ask this topic