O'Reilly logo
  • Dong Yu thinks this is interesting:

They can be used only when the operations that use the variable are atomic, meaning the methods that access the variable must use only a single load or store. If the method has other code, that code may not depend on the variable changing its value during its operation.


Cover of Java Threads, 3rd Edition


the use scope