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 are the Differences Between Collection and Collections in Ja ...

Why Do You Use Upcasting or Downcasting in Java ?

What is the Difference Between an ArrayList and a LinkedList Data ...

Why Java Provides Garbage Collector ?

What is the Reason to Organize Classes and Interfaces in a Packag ...