471,585 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,585 software developers and data experts.

flyweight reference counting

ash
hi

does anyone has any experience with flyweight pattern with refernce
counting

i want to share objects between multiple clients and want to delete
the object from shared pool when the last client deletes a refernce to
it
Jul 19 '05 #1
1 2588
> does anyone has any experience with flyweight pattern with refernce
counting
I think this is OT but:

Not the flyweight pattern gc'tor exactly.

More of a differential or cyclic weighted pattern:

http://groups.google.com/groups?selm...crnsc02&rnum=1

atomic_ptr collector uses an atomic differential reference count.

My collector collects multi-objects using a single proxy reference count.

Those garbage collectors will give you an idea on how to write fast,
race-condition free, atomic garbage collected objects without having to use
separate threads, or any damn mark-and-sweep type crap.

Enjoy!

i want to share objects between multiple clients and want to delete
the object from shared pool when the last client deletes a refernce to
it


It depends on how you want to share you objects. You may not even need
special reference counting. You might be able to use "normal" reference
counting...

--
The designer of the experimental, SMP and HyperThread friendly, AppCore
library.

http://AppCore.home.comcast.net
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Elbert Lev | last post: by
reply views Thread by Kalle Rutanen | last post: by
1 post views Thread by Tony Johansson | last post: by
1 post views Thread by Tony Johansson | last post: by
4 posts views Thread by aaronfude | last post: by
reply views Thread by FluffyCat | last post: by
1 post views Thread by oec.deepak | last post: by
reply views Thread by Arthur | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.