bug-commoncpp
[Top][All Lists]
Advanced

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

Threads leak?


From: Gabor Szabo
Subject: Threads leak?
Date: Wed, 07 Apr 2004 17:18:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113



Hi there,


In my program I had to repetitively create, run and destroy threads with the Thread class, and noticed that the memory footprint of the process just keeps growing (as shown by top). I have attached two pieces of code, one with the Thread class, and one using pthreads, both performing the same operations from this point of view. While the memory usage of the pthreads one does not increase, this is not true for the CC++ example. I am using Common C++ 1.1.0.

I have looked at the source code of Threads, but did not see any indication of why this is happening.


Gabor Szabo

Attachment: thtest.tar.gz
Description: Unix tar archive


reply via email to

[Prev in Thread] Current Thread [Next in Thread]