Subj : Re: Linux Posix Threads: Memory consumption To : comp.programming.threads From : saraneus Date : Sat Apr 02 2005 10:19 am Oliver Battenfeld wrote in message news:<1202325.PpYFexS3M3@odb.my-fqdn.de>... > > I quote from 'man pthread_join': > When a joinable thread terminates, its memory resources (thread descriptor > and stack) are not deallocated until another thread performs pthread_join > on it. Therefore, pthread_join must be called once for each joinable thread > created to avoid memory leaks. That's good news, thanks a lot. Sorry for not reading the man page, I just didn't know of it, really! As I mentioned, I'm using mtrace over the whole program to find memory leaks. I expect the console "mtrace" to say "No memory leaks.", but that never comes up, wenn I use threads. It always sais "Memory not freed" and just one line with a size of 0x1fe0. And I'm joining this thread. Is that memory needed by the controlling thread and never freed? .