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
What is time_t?
Name the unix command to find how many days the server has been up.
What is the use of the command 'ls -x chapter[1-5]' ?
Explain the steps that a shell follows while processing a command.
What is the use of tee command?
What is .sh file?
Explain command to view process running?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is merge command in unix?
What is the use of the tee command?
How do I delete files from command prompt?
Give the command for finding the current date.
What is ‘ps’ command for?
Which command is used to restrict incoming messages?
What is used to type command?