Quantcast
Channel: Atomic statement ignored without volatile keyword - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by JB Nizet for Atomic statement ignored without volatile keyword

A write being atomic means that the write is executed as a single, atomic operation. No other thread could see something other than the value before the assignment, or after the assignment. For...

View Article



Atomic statement ignored without volatile keyword

The java concurrency tutorial states that:Reads and writes are atomic for reference variables and for most primitive variables (all types except long and double). Reads and writes are atomic for all...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images