Sobes.tech
Junior — Middle

What situations can lead to the appearance of a zombie process in the system?

sobes.tech AI

Answer from AI

A zombie process is a process that has finished execution, but its parent process has not yet read its exit status (did not call wait or an equivalent).n Main situations leading to the appearance of zombies:

  • The parent process does not handle the SIGCHLD signal or does not call wait/waitpid for child processes.
  • The parent process is stuck or malfunctioning, not releasing resources of finished child processes.
  • Errors in process management logic, where child processes terminate but the parent is not notified. Zombie processes occupy entries in the process table but do not consume CPU or memory. Their accumulation can lead to resource exhaustion.
What situations can lead to the appearance of a… - sobes.tech