<?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 lingo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560997#M918679</link>
    <description>what does zombie, orphan, defunct, and run-away processes mean? and how can each be addressed?&lt;BR /&gt;    i have seen admins/books say different things for each, and i am at the point where i do not know who is right/wrong</description>
    <pubDate>Thu, 02 Aug 2001 20:25:28 GMT</pubDate>
    <dc:creator>Marc Ahrendt</dc:creator>
    <dc:date>2001-08-02T20:25:28Z</dc:date>
    <item>
      <title>lingo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560997#M918679</link>
      <description>what does zombie, orphan, defunct, and run-away processes mean? and how can each be addressed?&lt;BR /&gt;    i have seen admins/books say different things for each, and i am at the point where i do not know who is right/wrong</description>
      <pubDate>Thu, 02 Aug 2001 20:25:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560997#M918679</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2001-08-02T20:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: lingo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560998#M918680</link>
      <description>Hi Marc,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Thu, 02 Aug 2001 20:31:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560998#M918680</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-08-02T20:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: lingo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560999#M918681</link>
      <description>This post explains it quite well. Look &lt;BR /&gt;for the response(s) by Magdi. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 02 Aug 2001 21:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2560999#M918681</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-08-02T21:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: lingo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2561000#M918682</link>
      <description>Hi Marc:&lt;BR /&gt;&lt;BR /&gt;There are a few of posts which maybe are useful for you.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x6f717e990647d4118fee0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x6f717e990647d4118fee0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa26e87dc4d7dd5118ff00090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2001 22:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2561000#M918682</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2001-08-02T22:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: lingo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2561001#M918683</link>
      <description>Hi Marc,&lt;BR /&gt;&lt;BR /&gt;Zombie process are those ones that when they finish working ( normal or abnormal exit ) they didn't find their parents executing a wait() function( waiting ) for them. &lt;BR /&gt;&lt;BR /&gt;That's mean, consider a process P0 is doing a fork ( creates a copy of himeself ). The copy process is P1 called the child process ( so 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 ZOMBIE 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 Zombies are considered as &lt;BR /&gt;1. Not live nor 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;&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;&lt;BR /&gt;Example: &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 1) 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 view . &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 zombies 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;</description>
      <pubDate>Fri, 03 Aug 2001 06:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2561001#M918683</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-03T06:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: lingo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2561002#M918684</link>
      <description>thx ...but i read all those before posting my question. i was hoping for some new information.&lt;BR /&gt;at this point i think the following&lt;BR /&gt;   zombies: cannot communicate with parent, cannot be killed (only reboot clears), shows up in "ps" as &lt;DEFUNCT&gt; for COMMAND, and Z for STATE&lt;BR /&gt;   orphans: cannot communicate with its parent, but if init becomes the parent there is a chance for it to die/exit without turning into a zombie&lt;BR /&gt;   defunct: zombie&lt;BR /&gt;   runaway: shows up possibly in "ps" as R for state, is able to be killed, only a CPU hog with high values for TIME in "ps"&lt;BR /&gt;&lt;BR /&gt;wondering if my simplified summary is OK? is missing any basic key concept, etc.?&lt;BR /&gt;&lt;BR /&gt;wondering also if there were some other ways to identify zombies/orphans, to terminate orphans (like using special kill signals), and to possibly get early signs of runaways/potential runaways?&lt;BR /&gt;&lt;BR /&gt;thx in advance for any input, and to those who have already replied&lt;BR /&gt;&lt;BR /&gt;&lt;/DEFUNCT&gt;</description>
      <pubDate>Fri, 03 Aug 2001 23:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lingo/m-p/2561002#M918684</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2001-08-03T23:38:30Z</dc:date>
    </item>
  </channel>
</rss>

