Reading and writing of a single variable is atomic (language guarantee!), unless the variable is of type long or double.
I was reading a course slides and i found that written. The class was about concurrency.
Can anyone explain me why writing a long or a double is not an atomic operation? It really got me by surprise.