<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Top Question??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548363#M875520</link>
    <description>Zombies are processes that have died, but have not removed from the process table.  Often caused by a parent process not keeping track of its children.&lt;BR /&gt;&lt;BR /&gt;Robin</description>
    <pubDate>Tue, 03 Jul 2001 16:02:44 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2001-07-03T16:02:44Z</dc:date>
    <item>
      <title>Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548362#M875519</link>
      <description>What is a zombie??&lt;BR /&gt;&lt;BR /&gt;241 processes: 232 sleeping, 2 running, 7 zombies&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jul 2001 15:55:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548362#M875519</guid>
      <dc:creator>John Booth_1</dc:creator>
      <dc:date>2001-07-03T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548363#M875520</link>
      <description>Zombies are processes that have died, but have not removed from the process table.  Often caused by a parent process not keeping track of its children.&lt;BR /&gt;&lt;BR /&gt;Robin</description>
      <pubDate>Tue, 03 Jul 2001 16:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548363#M875520</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-07-03T16:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548364#M875521</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Zombies on a normal system get cleaned up and a kill will not get ruid if them. &lt;BR /&gt;&lt;BR /&gt;If you get stuck with lots of zombies then a reboot is required.&lt;BR /&gt;&lt;BR /&gt;"Zombie -- Dead but won't lie down----"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Tue, 03 Jul 2001 16:06:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548364#M875521</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-07-03T16:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548365#M875522</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;A zombie process is one that is never going to wake up.  Most generally, it is waiting on its parent process to collect its termination information by doing a wait().&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Jul 2001 16:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548365#M875522</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-03T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548366#M875523</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Look, Zambie process are those one that when they finish working ( normal or abnormal exit ) they didn't find their parents  still a live( waiting ) for them.&lt;BR /&gt;&lt;BR /&gt;That's mean, consider a process P0 wis doing a fork ( creates a copy of himeself ). The copy process is P1 called the child process and P0 is the parent process of P1.&lt;BR /&gt;&lt;BR /&gt;If P1 finish his work ( normal or abnormal exit ) and P0 is not listening to him with a wait() function. So , P1 became a ZAMBIE process.&lt;BR /&gt;&lt;BR /&gt;Alot of devellopers fall into this problem ( they are no more accepted into the system under their loginnames till these zambies are killed with a BOOT of course ) and the only way to kill them is REBOOTING the system.&lt;BR /&gt;&lt;BR /&gt;Why booting, is that Zambies are considered as &lt;BR /&gt;1. Not live nor not Died !!! So how to kill them.&lt;BR /&gt;&lt;BR /&gt;If you need any help to avoid this miss programming, I have the solution just append your request .&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Tue, 03 Jul 2001 16:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548366#M875523</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-03T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548367#M875524</link>
      <description>Hi John&lt;BR /&gt;&lt;BR /&gt;It is like this , when you kill a paretn process and not the children procees associated with it then that process become  a zombie or defunct process . There is no way to kill it except for rebooting the system .&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 03 Jul 2001 16:20:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548367#M875524</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-07-03T16:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548368#M875525</link>
      <description>Zombies are processes that have died, but can't remove  with kill -9,only with reboot.</description>
      <pubDate>Tue, 03 Jul 2001 16:25:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548368#M875525</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-07-03T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548369#M875526</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I am not sure MANOJ !!!&lt;BR /&gt;&lt;BR /&gt;If you kill the parent process, all children are killed as well. This is sure.&lt;BR /&gt;&lt;BR /&gt;The phenomena of Zambies is :&lt;BR /&gt;&lt;BR /&gt;The child exit and his parent is not listening to him. That's really all !&lt;BR /&gt;&lt;BR /&gt;Have a look in the following book :&lt;BR /&gt;&lt;BR /&gt;Advanced Programming in the UNIX Environment.&lt;BR /&gt;Addison-Wesley&lt;BR /&gt;W. Richard Stevens.&lt;BR /&gt;Pages 195 and 196&lt;BR /&gt;&lt;BR /&gt;Magdi &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jul 2001 16:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548369#M875526</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-03T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548370#M875527</link>
      <description>Yep Kamal&lt;BR /&gt;&lt;BR /&gt;I also agree but then if child process dies with the parent process then we can never have zombies . So what you say is genreally true but in some cases it may not by when the Zombies get created.&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 03 Jul 2001 16:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548370#M875527</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-07-03T16:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Top Question???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548371#M875528</link>
      <description>Hi Manoj,&lt;BR /&gt;&lt;BR /&gt;You said , "I also agree but then if child process dies with the parent process then we can never have zombies ", :&lt;BR /&gt;&lt;BR /&gt;I don't undrestand the sentence : "if child process dies with the parent" ?&lt;BR /&gt;&lt;BR /&gt;The situation is :&lt;BR /&gt;&lt;BR /&gt;P0 is the parent of P1.&lt;BR /&gt;P1 is the child of P0.&lt;BR /&gt;&lt;BR /&gt;Normal programming is :&lt;BR /&gt;1. The parent P0 should execute a wait() function before a child process terminates normally or abnormally.&lt;BR /&gt;2. If Child process is not sure that his parent is waiting for him , he will execute the function getppid() function and executes an exit() as soon the function getppid() returns 1 ( that means that the unix init process (pid 1) is the actual parent).&lt;BR /&gt;&lt;BR /&gt;unix init process ( pid one ) inheriets all orphan processes and immediately executes a wait() function as soon as a child process exits ( normal or abnormal exit ).&lt;BR /&gt;&lt;BR /&gt;It's really the Client/Server model from a process point of vue and I implement this solution in 1995.&lt;BR /&gt;&lt;BR /&gt;Of course, after two systems boots !!!&lt;BR /&gt;&lt;BR /&gt;The manner by which the Unix model avoid that is :&lt;BR /&gt;&lt;BR /&gt;P0 forks twice ,&lt;BR /&gt;&lt;BR /&gt;P0 fork and gives P1&lt;BR /&gt;P1 fork and gives P2&lt;BR /&gt;&lt;BR /&gt;1.The first instruction of P2 is to loop till getppid() returns 1; getppid means GetParentProcessIdentification. ( init process )&lt;BR /&gt;2. The first instruction of P1 is exit() function.&lt;BR /&gt;3. P2 became ORPHAN.&lt;BR /&gt;4. init process become the actual parent of P2.&lt;BR /&gt;5. The function getppid() returns 1 now.&lt;BR /&gt;6. The P2 process executes its task.&lt;BR /&gt;7. P2 terminates normally or abnormally.&lt;BR /&gt;8. init process executes an immediate wait() function.&lt;BR /&gt;9. P2 died without being ZAMBIE.&lt;BR /&gt;&lt;BR /&gt;If you follow this protocol, your application will never have zambies processes.&lt;BR /&gt;&lt;BR /&gt;Hope this explain the issue.&lt;BR /&gt;Wainting for any discussion.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Magdi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jul 2001 17:00:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-question/m-p/2548371#M875528</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-03T17:00:03Z</dc:date>
    </item>
  </channel>
</rss>

