Answer Posted / jijesh poyil
A zombie process or defunct process is a process that
has completed execution but still has an entry in the
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. The wait call may be
executed in sequential code, but it is commonly executed in
a handler for the SIGCHLD signal, which the parent
receives whenever a child has died.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.
Answer
# Do a ps and identify the zombie processes
# ps -el | grep 'Z'
Occasionally, these processes are in such a state
that the
only way to get rid of them is to reboot to clear
them.
In most cases, you can get rid of a zombie by
normal means,
"kill -15 zombie PPID", "kill -9 zombie PPID".
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is command line in unix?
How do I find hostname in linux?
What is pwd in linux command?
How do you sort cpu in top command?
How do you limit memory usage for commands?
Which daemon is used for scheduling of the commands?
What is the use of cp p command?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
In order to improve your system’s security you decide to implement shadow passwords. What command should you use?
What would be the result of the command paste -s dog cat?
How do I run a bash script in linux?
Who is unix command?
What the command used for list the contents of your home directory, current directory and all subdirectories?
Does cp overwrite?
How do I clear terminal command history?