Subj : Re: speed-up critical regions To : comp.programming.threads From : Phil Frisbie, Jr. Date : Thu Jun 16 2005 10:52 pm amorox@gmail.com wrote: > I want to thank Phil for his useful link. The Hoard is the kind of > implementation I was looking for. > > The Hoard solution, as described by Emery Berger in his paper, is based > on local heaps per thread. But as I thought, the first operation he's > doing in the alloc/free functions is to lock the 'choosen' heap. So, > local heaps don't mean mutex free. You still have the overhead of a > lock operation in every allocation. The Hoard can just be for reference if you wish. For example, if you engineer your app to guarantee that allocated memory will only be freed within the same thread then no mutex is needed. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com .