Use in Atomic Calculations

  • Ralph Lecessi


The classes in the java.util.concurrent.atomic package support atomic operations on variables such that a single read or write operation cannot be interrupted by another thread. The AtomicInteger class protects an underlying int value by providing methods that perform atomic operations on the value. Atomic values can be accumulated, updated, and compared. Atomic Longs, Booleans, Arrays, and References are provided.

Copyright information

© Ralph Lecessi 2019

Authors and Affiliations

  • Ralph Lecessi
    • 1
  1. 1.Kendall ParkUSA

Personalised recommendations