Using volatile keyword with mutable object
Java - volatile reference to mutable object - will updates to the object's fields be visible to all threads
Volatile Keyword not working as Expected volatile vs not volatile Volatile keyword usage in Java What is Volatile in Java and when/how should we use them? Java volatile array? Volatile keyword does not work as expected with multiple instances of a class Volatile keyword without static not working as expected Java Volatile Variable What is the volatile keyword useful for What is the "volatile" keyword used for? When exactly do you use the volatile keyword in Java? Using volatile keyword for creating one instance Java: Do all mutable variables need to be volatile when using locks? Using volatile keyword with wrapper classes proper use of volatile keyword Why no volatile? Java volatile keyword not working as expected Is volatile read happens-before volatile write? What is the differences between volatile and static keyword? Make an AtomicXXX object volatile Why is volatile keyword not allowed for local variables? Why make a method volatile in java? Do I need the volatile keyword? (Java) Is the "volatile" keyword word needed in this instance? (Java) Why don't we need volatile with StampedLock? Volatile Keyword & the thread local memory Java's volatile in C? Volatile keyword behavior after version 1.5 Volatile variable in Java