<?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: process id 0 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377815#M196922</link>
    <description>Yes,&lt;BR /&gt;&lt;BR /&gt;It's the swapper. If you want to see it execute:&lt;BR /&gt;&lt;BR /&gt;ps -ef|grep 0|more&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Sep 2004 08:57:49 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2004-09-13T08:57:49Z</dc:date>
    <item>
      <title>process id 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377813#M196920</link>
      <description>hi friends&lt;BR /&gt;i'm having 2 doubt.&lt;BR /&gt;1.what's the function for pid 0?(i think pid1 is init process id,but init parent id shows 0)&lt;BR /&gt;2.how to find  background process?&lt;BR /&gt;Kindly gudie me.&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;amp;Regards&lt;BR /&gt;S.Muthu</description>
      <pubDate>Mon, 13 Sep 2004 08:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377813#M196920</guid>
      <dc:creator>muthamilan</dc:creator>
      <dc:date>2004-09-13T08:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: process id 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377814#M196921</link>
      <description>i believe 0 is originally swapper and then init (1) begins and processes start up after in order.</description>
      <pubDate>Mon, 13 Sep 2004 08:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377814#M196921</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2004-09-13T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: process id 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377815#M196922</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;It's the swapper. If you want to see it execute:&lt;BR /&gt;&lt;BR /&gt;ps -ef|grep 0|more&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 08:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377815#M196922</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-09-13T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: process id 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377816#M196923</link>
      <description>process ID = 0 is for swapper, a daemon that handles page-in and page-out activities when memory is full. init is used to manage the entries in /etc/inittab and also to inherit background processes that have been detached from their parent. The term "background" process is meaningful in relation to an interactive shell. Processes like daemons such as cron and swapper and inetd all run by themselves so they aren't really background. In a shell, you can start a process using the &amp;amp; character which detaches a process from the shell's terminal.</description>
      <pubDate>Mon, 13 Sep 2004 09:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377816#M196923</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-09-13T09:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: process id 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377817#M196924</link>
      <description>1. swapper is parent process for init process and The swapper process is associated with process swapping and process working set trimming, and continous activity of the swapper is typically considered undesirable.&lt;BR /&gt;&lt;BR /&gt; It is the special process which started at bootup and create init process. &lt;BR /&gt;&lt;BR /&gt;2. We can identify the background process as,&lt;BR /&gt; jobs command.&lt;BR /&gt; &lt;BR /&gt;   Examaple:&lt;BR /&gt; &lt;BR /&gt;  sleep 100&amp;amp;&lt;BR /&gt;  # jobs&lt;BR /&gt;&lt;BR /&gt;  It will give all the process there.&lt;BR /&gt;&lt;BR /&gt; You can foreground to background and vice versa using bg and fg shell command.&lt;BR /&gt;&lt;BR /&gt; See ksh man page for jobs part&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 09:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377817#M196924</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-13T09:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: process id 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377818#M196925</link>
      <description>Actually, there is a much more accurate way to see a particular process ID:&lt;BR /&gt; &lt;BR /&gt;ps -fp 0&lt;BR /&gt; &lt;BR /&gt;The -p option allows you to list one or more process IDs.  grep and ps don't produce clean results (there are a lot of "0" characters in ps -ef). ps actually has MANY useful options including -u &lt;USER-NAMES&gt;, and the really useful -C -H and -o options. However, to access the XPG4 options (-H -C -o) you need to temporarily set a special variable: UNIX95. To save a lot of typing, I'll use alias in /etc/profile so all users will have access to the XPG4 features too:&lt;BR /&gt; &lt;BR /&gt;alias ps="UNIX95= /usr/bin/ps"&lt;BR /&gt; &lt;BR /&gt;(don't export UNIX95= as it affects certain programs and libraries, possibly changing results) To see the hierarchical relationship of all processes:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -efH&lt;BR /&gt; &lt;BR /&gt;To find all POSIX shell processes:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -fC sh&lt;BR /&gt; &lt;BR /&gt;MUCH more accurate than grep.&lt;/USER-NAMES&gt;</description>
      <pubDate>Mon, 13 Sep 2004 10:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-id-0/m-p/3377818#M196925</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-09-13T10:06:43Z</dc:date>
    </item>
  </channel>
</rss>

