Difference Between Orphans and Zombies

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Difference Between Orphans and Zombies

    1841HRS 29 Jun 2004

    Hi,

    Can anyone tell me some good references to materials on Zombies
    and Orphans? I have asked this question to many people and have
    received different replies from each of them. Some of the answers even
    cost me interviews.

    So can anyone give me the name of some resource (in the net or
    otherwise) about this.

    If you are giving some direct replies, it would be better if you
    can substantiate your replies with references to books, just so that
    we can get more info on the subject that way.

    Thanks in advance.
    with warm regards,
    Karthick S.
    Karthick S. Guest

  2. Similar Questions and Discussions

    1. Delete record without leaving orphans
      I have 2 MS access tables "links" and "linkCategory" where links get assigned to a category for display. I want to be able to delete a...
    2. Why is there a difference??
      I'm noticing that for some reason the 2 icons I have on my page are moving in different browsers. Look fine in IE but not in Firefox. Page is...
    3. Difference between ASP & PHP
      I doubt about the difference between ASP & PHP. Some people say that PHP is faster than ASP and PHP is the free equivalant of ASP. An other...
    4. perl zombies
      >>>>> "H" == Hudson <scripts_you-know-the-drill_@hudsonscripting.com> writes: H> there are some people in the perl community that want to follow...
    5. fork, childs, zombies, start a process in the background without waiting for it
      Hi I have a parent program, that should loop (eternally), and start other programs without waiting for them, so many programs can be started at...
  3. #2

    Default Re: Difference Between Orphans and Zombies

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Karthick S. wrote:
    > 1841HRS 29 Jun 2004
    >
    > Hi,
    >
    > Can anyone tell me some good references to materials on Zombies
    > and Orphans?
    Google is your friend. STFW, and you shall find all that you seek.
    Or, you could read a good book on Unix, or on OS design, such as
    - - "Advanced Programming in the Unix Environment" by W. Richard Stevens
    - - "Operating Systems Design and Implementation" by Andrew Tanenbaum and
    Albert Woodhull
    > I have asked this question to many people and have
    > received different replies from each of them. Some of the answers even
    > cost me interviews.
    The definition of an orphan and a zombie process is well known, and has
    been standardized for decades. I'm surprised that you find a variance in
    the definitions, wide enough to cause problems at job interviews
    > So can anyone give me the name of some resource (in the net or
    > otherwise) about this.
    >
    > If you are giving some direct replies, it would be better if you
    > can substantiate your replies with references to books, just so that
    > we can get more info on the subject that way.
    Briefly,
    - - Each process has a parent process, culminating with the init (pid 1)
    process

    - - The parent process is expected to monitor the health of any children
    processes it spawns.

    - - If the parent process terminates before the children processes do,
    then the children processes become 'orphans', and are 'adopted' by the
    init process (pid 1)

    - - Orphan processes are 'live'; they are executing, and take up both a
    process table slot, and real system resources (CPU, memory, I/O)

    - - If the child process terminates before the parent process does, then
    the child process becomes a 'zombie' until the parent process
    retrieves the child process' status. Normally, this interval is so
    small that it is not noticable in human time. However, when a parent
    process refuses to reap it's dead children's status, or defers that
    activity for an extended period of time, the child process is shown
    as a 'zombie' process.

    - - Zombie processes are 'dead', but not buried. They are no longer
    taking up real system resources (CPU, memory, I/O), but /do/ take up
    a process table slot. They will give up even this, once their parent
    (or init) reaps their process status.


    [url]http://www-cdf.fnal.gov/offline/UNIX_Concepts/concepts.zombies.txt[/url]
    [url]http://www.cs.princeton.edu/courses/archive/fall03/cs217/precepts/12/orphanzombie.pdf[/url]

    > Thanks in advance.
    > with warm regards,
    > Karthick S.

    - --

    Lew Pitcher, IT Consultant, Enterprise Application Architecture
    Enterprise Technology Solutions, TD Bank Financial Group

    (Opinions expressed here are my own, not my employer's)
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (MingW32)

    iD8DBQFA4XC+agVFX4UWr64RAsMqAKC58ypw2YPERR0l1CyGe9 EHYYzIEwCeNaej
    lgjxQOnID+dA3JjKBnkedyI=
    =TCQh
    -----END PGP SIGNATURE-----
    Lew Pitcher Guest

  4. #3

    Default Re: Difference Between Orphans and Zombies

    Karthick S. <tosk@rediffmail.com> wrote:
    > If you are giving some direct replies, it would be better if you
    > can substantiate your replies with references to books, just so that
    See [url]http://www.cseg.ca/recorder/199802/3.html[/url]
    And a quick search with google would have given you a lot more.

    Davide


    --
    | Command, n.: Statement presented by a human and accepted by a computer
    | in such a manner as to make the human feel as if he is in control.
    |
    |
    Davide Bianchi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139