...
Declaring a variable as volatile or correctly synchronizing the code guarantees that 64-bit primitive long
and double
variables are accessed atomically. (For more information on sharing long
and double
variables among multiple threads, see CON25CON05-J. Ensure atomicity when reading and writing 64-bit values.)
...