Delete comment from: Javarevisited
Bhupender Giri said...
Hi,
Thanks for your post but point no. 3 & 6 are contradictory under "Important points on Volatile keyword in Java" section.
In my opinion, Volatile only guarantees "Visibility" but not atomicity. Since long/double variable does not support atomicity so possible solution for them would be using Atomic* apis.
Aug 4, 2015, 9:23:55 PM
Posted to How Volatile in Java works? Example of volatile keyword in Java

