What is a zombie?

Questions by nancyphilips   answers by nancyphilips

Showing Answers 1 - 2 of 2 Answers

sanjay

  • May 25th, 2007
 

A zombie is a process whose parent has exited but the child has not.

A zombie process is a process that completed execution but still in process table.

When a process ends, all of the memory and resources associated with it are deallocated so they can be used by other processes. However, the process's entry in the process table remains. The parent can read the child's exit status by executing the wait system call, at which stage the zombie is removed

After the zombie is removed, its process ID and entry in the process table can then be reused. However, if a parent fails to call wait, the zombie will be left in the process table. In some situations this may be desirable, for example if the parent creates another child process it ensures that it will not be allocated the same process ID.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions