Operating System - HP-UX
1755647 Members
2909 Online
108837 Solutions
New Discussion юеВ

Process IDs Reserved by System

 
Sandeep L R
Occasional Contributor

Process IDs Reserved by System

Hi All,

Can anyone help me out with answer for this question.

What process ids are generally reserved by Opearting system?

TIA

Sandeep
3 REPLIES 3
John Poff
Honored Contributor

Re: Process IDs Reserved by System

Hi,

The swapper process will get PID 0, and init will get PID 1.

JP
Sandeep L R
Occasional Contributor

Re: Process IDs Reserved by System

Thanks!!

Is there any other restriction on other process ids like OS will reserve some process ids for its internal purpose. Does this mean applications can take any pid except 0 and 1, if its available?
A. Clay Stephenson
Acclaimed Contributor

Re: Process IDs Reserved by System

When answering for generic UNIX, there are really only 2. PID 0 -- swapper; PID 1 --- init. Various flavors of UNIX have a few more.

One way to probe this for your particular case, is a simple ps -p N where N might range for 0 to 10.
If it ain't broke, I can fix that.