lundi 15 avril 2019

Do we need synchronization in flyweight design pattern?

Since the objects we share in flyweight design pattern are immutable, I'm wondering if we need to take synchronization into consideration? Even when multiple threads try to access the same objects and insert into the shared pool since the objects are always the same, I think we do not need to synchronize, please shed some lights on this. Thanks

Aucun commentaire:

Enregistrer un commentaire