atomic variable
A one-value holder, such as AtomicInteger, whose updates happen in one indivisible step.
Classes in java.util.concurrent.atomic (AtomicInteger, AtomicLong, AtomicBoolean, AtomicReference) provide lock-free incrementAndGet, getAndIncrement, compareAndSet and updateAndGet, with volatile visibility.
See also