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%astron.com@localhost (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.

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index