1.

What are Zombie process in UNIX and how to find them ?

Answer»

Zombie process is a process whose execution is completed but have not been removed from the process table.

When a program forks and the child finishes before the PARENT , kernel has some of the child information .

In case parent needs to CHECK for child's exit STATUS - parent calls 'wait()'. Child is said to be a zombie process in the duration child terminating and the parent calling 'wait()'.

Execute the below command

ps AUX | GREP Z  

child will have a 'Z' in its status field to indicate zombie process

Also this command will give details of all zombie processes in the processes table.



Discussion

No Comment Found