David Sparks wrote:
>>> = sprintf("%.6f", time()) .".". $self->qp->config("me") . \
>>> sprintf("%08X", rand(2**32 - 1)); #how expensive is this?
> The big advantage to using time() + id as the least significant digit is
> that you can put the id in a db server as a double or unixtime which
> comes in quite handy when you've got a lot of volume.
Would each thread have a unique PID or are all the threads under the
parent PID? Is there a thread ID we could use. The system knows how to
differentiate each thread. Can we use that in combination with time and IP?
--
JT Moree