When a process is created and the parent has exited but the

When a process is created and the parent has exited but the children are still running. Does that mean it\'s in a zombie state? Or am I missing something?

Solution

parent is exited but the children are still running means it is a orphan process

zombie process is a process that has completed execution but still has an entry in the process table. This entry is still needed to allow the parent process to read its child’s exit status

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, whereupon the zombie is removed.

After the zombie is removed, its process identifier (PID) 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.

When a process is created and the parent has exited but the children are still running. Does that mean it\'s in a zombie state? Or am I missing something?Soluti

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site