Example of a memory consistency error when using volatile keyword?
The volatile key word and memory consistency errors
Issues with method consistency in Java Volatile Keyword not working as Expected 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 Hibernate data consistency 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 Using volatile keyword with wrapper classes proper use of volatile keyword Why no volatile? Java volatile keyword not working as expected How do I solve this memory consistency error? Make an AtomicXXX object volatile Why is volatile keyword not allowed for local variables? Why make a method volatile in java? Using volatile keyword with mutable object Consistency level ALL used while statement has consistency level TWO defined 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 volatile variables affecting memory consistency of other non-volatile variables Java's volatile in C? Volatile keyword behavior after version 1.5