Java Atomic Access

http://docs.oracle.com/javase/tutorial/essential/concurrency/atomic.html

 

  • Reads and writes are atomic for reference variables and for most primitive variables (all types except long and double).
  • Reads and writes are atomic for all variables declared volatile (including long and double variables).

你可能感兴趣的:(Java Atomic Access)