Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Ralph Lecessi
About this chapter
Cite this chapter
Lecessi, R. (2019). Use in Atomic Calculations. In: Functional Interfaces in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4278-0_14
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4278-0_14
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4277-3
Online ISBN: 978-1-4842-4278-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)