in reply to Re: Time in Milliseconds or NanoSeconds in thread Time in Milliseconds or NanoSeconds
"Just as unique" is imprecise. The real question is, what is the likelihood of collision in the two value spaces? Collision in pid space occurs when the pid rolls over (it's typically 15 bits) and an "old" process is still running. Collision in $^T space occurs when more than one process is started in the same clock second. For there to be a collision in the combined space, such as the OP had, you'd have to have a situation where more than 32k processes are started in the same second. That's a significantly better bet than if using either one alone.
|