Re: C++ Memory Management Innovation: GC Allocator
  Home FAQ Contact Sign in
comp.lang.c++.moderated only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: C++ Memory Management Innovation: GC Allocator         

Group: comp.lang.c++.moderated · Group Profile
Author: Chris Thomasson
Date: Apr 25, 2008 01:50

"xushiwei" gmail.com> wrote in message
news:56aee384-8f2e-40ac-8b6f-54fcd808215f@q27g2000prf.googlegroups.com...
>{ Please do not quote extraneous material, such as the clc++m banner.
> Please also note that top posting is discouraged in this group. -mod }
>
> Yes, GC Allocator is not thread-safe. It's my EMPHASES in
> implementation section. And that is
> why GC Allocator is so fast.
>
> I don't think implementing a producer/consumer pattern is a common
> case. So, why not implement an allocator without a multithreaded lock,
> then use it with a explicit lock when you implement a producer/
> consumer pattern (or something that need to share memory)?

[...]

Well, I use producer/consumer all the time. AFAICT, it is a fairly common
pattern indeed.

--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
no comments
diggit! del.icio.us! reddit!