What is the functions of zambie process?
Answers were Sorted based on User's Feedback
Answer / sandeep patra
guys, we can think of zombie process as a GHOST. when a
person (having some unfinished business on earth) dies they
become ghost, means they are dead but they have there
existence on this earth. Just like that if a process died
but it's existence remains in the process entry table then
that process became Zombie.
now who is going to clean this mess?
so it is the work of the parent process to clean this thing
by waiting on the child process.
if the parent process don't clean up this mess then it would
be the work of operating system to release these resources
when process entry table would be looked up again
Regards,
Sandy :)
| Is This Answer Correct ? | 20 Yes | 0 No |
Answer / guest
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 is sent 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. 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.
| Is This Answer Correct ? | 9 Yes | 0 No |
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
What is nr in awk command?
Where LOG fiels resides in AIX and pls tel me how to remove the log file
use of ls command
What is the syntax of grep command and what is its use?
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
what is the command to list files in a directory in UNIX?
What is file system in unix??
How can you see the command line history?
what is the difference between relative path and absolute path?
Which is the command used to find out currently executing Process in UNIX?