Writing long and double is not atomic in Java?

It’s not atomic because it’s a multiple-step operation at the machine code level. That is, longs and doubles are longer than the processor’s word length.

Leave a Comment