Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: threaded programs report bogus process size ? (Christos Zoulas) wrote:
> >To correct this the reclaim operation should loop over the queue
> >and try to reclaim any of the dead threads.
> This seems to fix it.

Patch is wrong.  Apart from unnecessary re-lock in the loop and lock leak
after - consider the case when 'first_thread' after re-insertion into the
queue gets taken out by other pthread_create().  Infinite loop.


Home | Main Index | Thread Index | Old Index