What are the Atomic Operations in Java ?

Java language provides some basic Atomic operations. These operations can be used to make sure that concurrent threads always see the same value.

Some of these Atomic operations are...

  • Read operations on reference variables and primitive variables (except long and double) .
  • Write operations on reference variables and primitive variables (except long and double) .
  • Read operations on all variables declared as volatile.
  • Write operations on all variables declared as volatile.


You May Interest

What is the Difference Between a Cookie and a Session Object in J ...

What is Difference Between Include Directive and Include Action o ...

Why String Class is Immutable or Final in Java ?

How Can We Find the Memory Usage of JVM From Java Code ?

Why Java Does Not Support Operator Overloading ?