On Sun, 8 Apr 2001, Ian Holsman wrote:

> is 'a += X' thread safe ?

no.

however on every multiprocessing platform i know of there is an atomic way
to do that (without first aquiring a mutex)... it's just not exposed in
the pthread API.

> if it isn't .. would we care... we could get some pretty usefull estimates
> regardless.

maybe.  if you're using single-cpu machines then they'll be pretty good
estimates.  on multi-cpu boxes you just don't know.

-dean

Reply via email to