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

How Strategy Design Pattern is Different From State Design Patter ...

How Can We Reference an Unreferenced Object Again in Java ?

What are the Differences Between a List and Set Collection in Jav ...

What are the Main Benefits of Collections Framework in Java ?

What is the Importance of hashCode and equals Methods in Java ?