Thanks for the links.

I have shared class instance. There are two threads which can read/write fields of the class. As i understand i can declare class as synchronized or i can read/write using atomicLoad/atomicStore.
What's the difference between these two approaches?
In what circumstances should i consider synchronized classes or using std.atomic?

Reply via email to