Qual É a Diferença Entre um Zombie e um Orphan?
Um zombie process já terminou mas permanece na process table porque seu pai ainda não leu seu exit status, então ele ocupa um slot sem fazer nada. Um orphan, por outro lado, é um processo vivo cujo pai saiu e que foi reparentado para o init. Os dois descrevem situações opostas: um filho finalizado mas sem reap versus um rodando mas sem pai.
Por que isso importa
Distinguir os dois identifica bugs de limpeza: zombies significam que um pai não está fazendo reap, enquanto orphans significam que um pai morreu primeiro. Ambos podem se acumular em um runner ocupado se a supervisão de processos for fraca.
Guias relacionados
What Is an Orphan Process?An orphan process is one whose parent has exited; it keeps running and is adopted by the init system, which b…
What Is Reaping a Child Process?Reaping is when a parent calls a wait operation to read a finished child exit status, freeing the kernel slot…
What Is SIGCHLD?SIGCHLD is the signal the kernel sends a parent process when one of its child processes stops or terminates,…