Are 64 bit assignments in Java atomic on a 32 bit machine?

Viewed 7185

If I have code like this -

long x;
x  = 0xFFFFFFFFL;


If i run this code on a 32 bit machine is it guaranteed to be atomic or is it possible that a different thread reading x, might get an incomplete/garbage value?

4 Answers
Related