Date: Sat, 22 May 2004 16:56:51 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: Cole <cole@opteqint.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Pthread_create and memory issues. Message-ID: <Pine.GSO.4.10.10405221654080.25528-100000@pcnet5.pcnet.com> In-Reply-To: <000701c44034$89dbffb0$4206000a@stalker>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 May 2004, Cole wrote: > Hi > > Ok this is just a more direct question that the thread Memory Leak. > > I have a program using pthread_create, and it runs fine, no compile errors > or warnings, it all works fine, not a single issue, but it very very slowly > uses up memory. The program creates a fixed number of threads, and after > each one has run to completion it stores them for a while for use again if > needed soon, else it destroys them after a specified amount of time. The threads library (at least libpthread) caches threads and KSE/KSEGs for re-use. Threads also have to be detached (or joined to) in order to reclaim their space. -- Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10405221654080.25528-100000>