what is zombie process? with example

what is zombie process in Linux and explain with an example.how it works.


3 Answers
1-3 of  3
3 Answers
  • In zombie process parent process kills their child process.

  • Zombies are basically the leftover bits of dead processes that haven’t been cleaned up properly. A program that creates zombie processes isn’t programmed properly – programs aren’t supposed to let zombie processes stick around.

    When a process dies on Linux, it isn’t all removed from memory immediately — its process descriptor stays in memory (the process descriptor only takes a tiny amount of memory). The process’s status becomes EXIT_ZOMBIE and the process’s parent is notified that its child process has died with the SIGCHLD signal. The parent process is then supposed to execute the wait() system call to read the dead process’s exit status and other information. This allows the parent process to get information from the dead process. After wait() is called, the zombie process is completely removed from memory.

  • Zombie process is a process that terminate before a child process is terminates. 

Linux

Didn't get the answer.
Contact people of Talent-Linux directly by clicking here