[concurrency-interest] Atomic assignment

David Holmes davidcholmes at aapt.net.au
Sat May 9 20:00:49 EDT 2009

Peter Reilly writes:
> Just to be clear, writing to volatile longs/doubles/references 
> are also atomic

Accesses to all data types, other than double and long, are always atomic.

Accesses to a double or long are only atomic if the variable is volatile.


More information about the Concurrency-interest mailing list