Maybe I am misunderstanding the code.  It looks like "alive_thread_count--;"
could be executed concurrently by multiple threads and consequently end up
with an incorrect value.  Is it OK to have an approximate value?

--
Weldon Washburn

Reply via email to