What is zombie state ?
In : BCA Subject : UNIX and Shell ProgrammingA zombie process is a process that completed execution but still in process table.
When a process completes, all related memory and resources are de-allocated so that they can be utilized by other processes.
The process's entry in the process table, however, persists.
By using the wait system call, the parent can learn about the child's exit status, at which point the zombie is deleted.
After the zombie has been eliminated, the process ID and process table entry can be reused. The zombie will be left in the process table if a parent fails to call wait.
This may be advantageous in some cases; for example, if the parent spawns another child process, it will not be assigned the same process ID.
This may be advantageous in some cases; for example, if the parent spawns another child process, it will not be assigned the same process ID.