Re: Pthread_create and memory issues.
From: Daniel Eischen (eischen_at_vigrid.com)
Date: 05/22/04
- Previous message: Matthew D. Fuller: "Re: Memory Leak"
- In reply to: Cole: "Pthread_create and memory issues."
- Next in thread: Alex Keahan: "Re: Pthread_create and memory issues."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 May 2004 16:56:51 -0400 (EDT) To: Cole <cole@opteqint.net>
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 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Matthew D. Fuller: "Re: Memory Leak"
- In reply to: Cole: "Pthread_create and memory issues."
- Next in thread: Alex Keahan: "Re: Pthread_create and memory issues."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]