| Re: C++ Memory Management Innovation: GC Allocator |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.c++.moderated · Group Profile
Author: Chris ThomassonChris Thomasson Date: Apr 25, 2008 01:50
>{ 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.
|