Solved

zombie and orphan process

Posted on 2003-10-30
8
752 Views
Last Modified: 2007-12-19
What are zombie and orphan processess.Can u provide some example.
0
Comment
Question by:debarunbera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 9650017
A zombie is process that is not responding to signals, which means that it can't be killed. An orphan is a child of some process that either failed to die on instruction of the parent or failed to die when the parent exited.
0
 
LVL 20

Accepted Solution

by:
Gns earned 125 total points
ID: 9650447
> A zombie is process that is not responding to signals, which means that it can't be killed.
No that would be a process either in state D (non-interrutible waitstate) or which has "actively" disabled the signals. Has nothing to do with zombies.
This snippet from the ps manpage sheds some light on zombie processes:
       Processes  marked  <defunct> are dead processes (so-called
       "zombies")  that  remain  because  their  parent  has  not
       destroyed them properly. These processes will be destroyed
       by init(8) if the parent process exits.
... and this is from a google search on "orphan zombie process"
----------- zombie -------------
zombie process
<operating system> (Or "defunct process") A Unix process that has terminated (either because it has been killed by a signal or because it has called exit()) and whose parent process has not yet received notification of its termination by executing (some form of) the wait() system call.

A zombie process exists solely as a process table entry and consumes no other resources. This entry is retained to hold the child's exit status until the parent process wants to retrieve it. The parent can also be notified asynchronously via a signal of the child's termination.

Zombie processes can be seen in "ps" listings occasionally (with a status "Z" in some versions).

Compare orphan process.

(1997-10-08)
--------------------- Orphan ------------------
orphan process
<operating system> A Unix process whose original parent has terminated and which has become a child of "init(1)".

Compare zombie.

(1996-05-29)
----------------------------------

This "orphaning behaviour" is the same for all Unices, and Linux too. Also note that zombies are to be thought of as mainly harmless notes:-).

-- Glenn
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9651001
Glen is correct.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Expert Comment

by:milanygandhi
ID: 9655799
Zombie :
Linux OS maintains a process table which contains one entry for each process in the system.  Even if a process terminates (eg by system call exit()), its entry still remains in the process table till the parent process does a wai() system call to collect the exit code passed by the child process.  Thus, a zombie process is one which has terminated but the parent hasn't wait()ed for it and hasn't collected its exit code.  A zombie process does not occupy any resource except an entry in the process table.

Orphan process :
suppose  a process(say P1) creates a child process(say P2) using system call fork().  Now assume parent process P1 terminates (say, by making a system call exit())  whereas the child process P2 is still running.  In such a case a special process called init (which has process id 1) becomes parent of child P2 and P2 is called orphan process.
 
0
 
LVL 20

Expert Comment

by:Gns
ID: 10182741
I gave the first correct answer.

-- Glenn
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10231616
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by Gns
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php56-php-mcrypt for rhel7 php56 1 173
Recover Lacie Edmini data. 11 77
how to include conditional log rotate in liunx. 17 103
Bash script to include windows servers 13 41
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question