Zombie Process and Orphan Process

Поделиться
HTML-код
  • Опубликовано: 16 фев 2023
  • What are zombie and orphan processes?
    Answer: When a parent processes creates a child process using fork() but doesnt call wait() and the child process calls exit() and terminates, in such a case, the exit status returned by child will not be caught by parent and hence the entry of such child processes will not be removed from the process table. Such processes are termed ZOMBIE processes.
    If parent doesnt call wait() and also terminates by calling exit(), whereas the child is still executing, then such a process becomes ORPHAN.

Комментарии • 15