AtomicLongArray
We'll cover the following...
If you are interviewing, consider buying our number#1 course for Java Multithreading Interviews.
Overview
The AtomicLongArray
is equivalent of the AtomicIntegerArray
for the long type. You’ll observe several similarities between the two classes.
The class AtomicLongArray
represents an array of type long
that can be updated atomically. We can use long when the range of values we want to represent falls outside the range of values for an integer. An instance of the AtomicLongArray
can be constructed ...