 |
Description:
This is an alternative version of getpid, that for large thread
counts ( > 220000), provides "significantly" better performance.
This is particulary viable for PID_MAX=32768. Note under the current
algorithm, allocating the last pid will take 32 seconds (!!!) on
a 500MHZ P-III. |