SUMMARY: Range of PIDs generated on Tru64 Unix cluster

From: Maglinger, Paul (PMAGLINGER@scvl.com)
Date: Fri Aug 09 2002 - 12:57:40 EDT


My deepest appreciation to Bluejay Adametz, Dan Price, and Dr. Tom for their
replies. The answer I was looking for appears below.

> But what is the numerical range of values for PIDs (zero through ??????)
> for each node and at what point do they start over?

Beats me. I'm not even sure it's predictable -- after all, there
are some security exploits that depend on PID number being very
predictable -- I think we deliberately randomize them, but I'd
have to go read things like process creation code to be sure.

You can assume a PID will fit in an "int" (32 bits) and I believe
the representation assures that the value never exceeds 31 bits,
and you can infer that from the definition I pointed you to. So
I believe the upper bound is 2 to the 32nd power less 1.

Tom



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:49 EDT