<?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: How  OS picks the PID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433018#M356071</link>
    <description>Well, with a 'ps -ef|grep &lt;PID&gt;' you'll see when the process started, so it's simple to say if it's a new one.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;&lt;/PID&gt;</description>
    <pubDate>Tue, 09 Jun 2009 10:45:58 GMT</pubDate>
    <dc:creator>V. Nyga</dc:creator>
    <dc:date>2009-06-09T10:45:58Z</dc:date>
    <item>
      <title>How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433012#M356065</link>
      <description>HP-UX 11.11/PA RISC&lt;BR /&gt;I happened to trace a Oracleprocess which is suppose to be terminating at a particular time( i was expecting them to be finish before 10.oo Hrs; see the extract o/p below). But i could see the same PID in the extract o/p more time running than expected. I am not sure if the same process was still running or a new one with same PID.&lt;BR /&gt;&lt;BR /&gt;06/03/2009|07:45|   23367|oraclep500      |oracle          |   0.00|   0.7|      4.5|     1.25|   0.25|   17704|&lt;BR /&gt;06/03/2009|07:46|   23367|oraclep500      |oracle          |   0.00|   0.0|      0.7|     0.82|   0.44|    4988|&lt;BR /&gt;06/03/2009|09:16|   23367|oraclep500      |oracle          |   0.00|   0.0|      0.0|     0.00|   0.00|    9592|&lt;BR /&gt;06/03/2009|09:33|   23367|oraclep500      |oracle          |   0.00|   0.0|      0.0|     0.00|   0.00|      32|&lt;BR /&gt;06/03/2009|11:12|   23367|oraclep500      |oracle          |   0.00|   0.0|      0.0|     0.00|   0.00|    3068|&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433012#M356065</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2009-06-04T10:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433013#M356066</link>
      <description>PID is sequentially assigned from 1 (the init process) up to PID_MAX (defined in limits.h) before they wrap around again.  It is unlikely, unless you have an extremely busy system, that you would see a new process with the same PID.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 04 Jun 2009 10:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433013#M356066</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-06-04T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433014#M356067</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;There is a table out there and PID's are picked sequentially.&lt;BR /&gt;&lt;BR /&gt;ITs very simple.&lt;BR /&gt;&lt;BR /&gt;You might find a leak detector script I wrote useful in this hunt&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/?p=8" target="_blank"&gt;http://www.hpux.ws/?p=8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It identifies processes by memory use and is very flexible.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 04 Jun 2009 10:40:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433014#M356067</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-04T10:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433015#M356068</link>
      <description>In order to provide the least surprise to users, free PIDs are kept around, instead of being reused right away.</description>
      <pubDate>Fri, 05 Jun 2009 02:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433015#M356068</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-05T02:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433016#M356069</link>
      <description>&amp;gt;ME: provide the least surprise to users&lt;BR /&gt;&lt;BR /&gt;It seems in order to do this, PIDs can't be assigned sequentially, they would use a FIFO algorithm, which is initially sequential.</description>
      <pubDate>Fri, 05 Jun 2009 03:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433016#M356069</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-05T03:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433017#M356070</link>
      <description>Oops, I was wrong.  PIDs are assigned sequentially but skipped if in use.&lt;BR /&gt;So on one ps(1) output, it is possible to see the same PID used for two processes.</description>
      <pubDate>Mon, 08 Jun 2009 23:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433017#M356070</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-08T23:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: How  OS picks the PID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433018#M356071</link>
      <description>Well, with a 'ps -ef|grep &lt;PID&gt;' you'll see when the process started, so it's simple to say if it's a new one.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;&lt;/PID&gt;</description>
      <pubDate>Tue, 09 Jun 2009 10:45:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-os-picks-the-pid/m-p/4433018#M356071</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2009-06-09T10:45:58Z</dc:date>
    </item>
  </channel>
</rss>

