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 difference between cmp and diff commands?
Why is shebang used?
What is the command to view process running?
What is $0 bash?
How do I run a whois command?
Are you in or at the office?
Who command in unix operating system?
What is a bash command?
Can you enlist some commonly used network commands?
What are the general commands in using unix os for a beginner?
What do chmod, chown, chgrp commands do?
How do I open a port?
What command is used to switching between users in unix?
What does grep v do?
What is the comma to display different lines that are found when compare two files?