I have a question:
If volatile is not atomic, then Thread A reads/writes and Thread B only reads will not guaranteed. What will happen if Thread haven't written it into main memory but Thread B reads it from main memory?
Java Volatile Keyword https://t.co/swlQV5gOSz via @jjenkov