Re: [ILUG] linux pthreads problem Padraig Brady wrote:
> Vincent Cunniffe wrote:
> 
>>
>> Possibly. However, the amount of memory in use is stupid :
>>
>> I start 50 threads, and the memory usage goes up to 411436 VSZ/840 RSS.
>>
>> Then I stop those threads, and the usage stays there. I start another 50
>> threads, and the usage goes up to 821036 VSZ/1040 RSS. So, it's neither
>> freeing the resources correctly nor reusing them :-/
>>
>> I've found several other people seeing the same VSZ issue with pthreads,
>> spread over a long time, but no solution as yet.
> 
> 
> Err, Is your code fixed now?
> You need a seperate pthread_t per thread.

I've tested it with and without separate pthread_t's, and the problem is
identical, unfortunately.

Regards,

Vin


-- 
Irish Linux Users' Group: ilug@linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster@linux.ie