AtomicLong
Comprehensive guide to working with AtomicLong.
We'll cover the following...
If you are interviewing, consider buying our number#1 course for Java Multithreading Interviews.
Overview
AtomicLong
is the equivalent class for long
type in the java.util.concurrent.atomic
package as is AtomicInteger
for int
type. The AtomicLong
class represents a long value that can be updated atomically, i.e. the read-modify-write operation can be executed atomically upon an instance of ...