Glossary: Java Beyond the Basics
AtomicInteger
An integer whose updates, such as incrementAndGet(), can't be interrupted by other threads, which prevents lost counts in a race condition.
Glossary: Java Beyond the Basics
An integer whose updates, such as incrementAndGet(), can't be interrupted by other threads, which prevents lost counts in a race condition.