Thoughts on memory freeing
- From: "S James S Stapleton" <stapleton.41@xxxxxxx>
- Date: Tue, 29 Jul 2008 09:47:40 -0400
In languages, you end up having 'garbage collecting' methods for freeing
memory, and the other kind (I don't know the term off the top of my head,
but it's seen in C/C++ and done by directly calling the memory deallocation
function).
There's arguments as to which is better for a program, and a lot of what
I've seen points to the GC methods. If you are using a language where GC is
nontrivial, would it be advantage to have a memory deallocation thread? By
that I mean, rather than directly deallocate (i.e. a free call), call
something which will put the memory free'ing on another thread (either by
placing it on a to-be-deleted queue - which would have delays due to
locks/mutexes, or by running each deallocation in it's own thread - which
would have the thread creation overhead).
Does anyone have any thoughts (or better yet, suggestions for good reading,
preferably of the dead-tree kind, that I could pick up at the library) on
this?
Thanks.
.
- Follow-Ups:
- Re: Thoughts on memory freeing
- From: santosh
- Re: Thoughts on memory freeing
- Prev by Date: Re: Algorithm to achieve this result?
- Next by Date: Re: Thoughts on memory freeing
- Previous by thread: Algorithm to achieve this result?
- Next by thread: Re: Thoughts on memory freeing
- Index(es):
Relevant Pages
|