Date: Sat, 06 Feb 1999 12:23:05 +0300 (MSK) From: "Sergey S. Kosyakov" <ks@itp.ac.ru> To: John Birrell <jb@cimlogic.com.au> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Memory leak in pthread? Message-ID: <XFMail.990206122305.ks@itp.ac.ru> In-Reply-To: <199902052004.HAA22959@cimlogic.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05-Feb-99 John Birrell wrote: > Sergey S. Kosyakov wrote: >> This programm very quickly eats all the virtual memory. In "freebsd-hackers >> archive" I found some words about thread management by hand. More >> complicated >> program, where stacks are allocated/deallocated by malloc()/free() for each >> thread, eats memory not so quickly, but still eats, e.g. resident size (for >> each > > You need to detach the threads. > I add pthread_detach() after pthread_join(). Nothing was happened. Process size grows constantly. May be I should use completely detached threads, I mean I should never use pthread_join()? Sergey. --- ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990206122305.ks>