From: "Maglinger, Paul" <PMAGLINGER@scvl.com>
Subject: SUMMARY: Range of PIDs generated on Tru64 Unix cluster
Date: Fri, 09 Aug 2002 11:57:40 -0500 [thread overview]
Message-ID: <64E3EF472A96B048B9147D40BB0031A814CCC0@indyexchange.scvl.com> (raw)
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
reply other threads:[~2002-08-09 16:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox