Answer Posted / 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 |
Post New Answer View All Answers
How to display no of records in oracle using unix command?
How do you grep a case insensitive?
How do you grep recursively?
What's a command word?
How do I use grep to search for a file?
Explain the steps that a shell follows while processing a command.
What are the dos commands?
What command will change your prompt to myprompt?
What will the following command do?
What is the comma to show the space allocation of files?
Which unix command to make a new directory?
What does #!/ Bin sh do?
What are awk commands?
What do know about tee command and its usage?
How can you see the command line history?