Process IDs are strictly increasing, but if your system runs long enough and there is a lot of processes terminating and starting, you could at some point reach the limit of the underlying integral type (on my system it seems to be a signed int) where no larger pid would exists. Would this cause old unused ids (of processes that finished) to be recycled (i.e. handed out a second time)? What if somebody is waiting for that pid to terminate but didn't check in a looong time?
Process IDs are not strictly increasing on any UNIX-like operating system I know of. Your question is based on a false assumption.
The only requirements on process IDs are:
|show 2 more comments|