atomics
2 tutorials tagged “atomics”.
- Atomic Variables in JavaAtomic classes such as AtomicInteger, AtomicReference and LongAdder update values safely without locks. Learn their methods and when LongAdder wins.
- Compare-And-Swap (CAS) in JavaCompare-and-swap updates a value only if it still holds what you expect, retrying otherwise. Learn how atomic classes use CAS loops, and the ABA problem.