The array value is passed into the AtomicIntegerArray by construction, and the AtomicIntegerArray actually makes a copy of the current array.
source (of information etc)：http://www.sohu.com/a/270786972_505800
Introduction to atomic manipulation classes
The atomic operation class is equivalent to the generalizedvolatile variable， Capable of supporting atomic reads- modify- write operation。 for exampleAtomicInteger indicates aint Value of type， providesget harmonyset approach， suchvolatile Variables of type have the same memory semantics for reads and writes。 There are a total of atomic operation classes13 category， (located) atjava.util.concurrent.atomic contract (a company)， There are four types of atomic update classes that can be classified： Atomic update basic type、 Atomic update array types、 Atomic update references and atomic update properties。
Each of these four atomic operation classes will be described below.
Atomic update basic type
Update the basic type using an atomic approach, consisting of 3 classes.
Atomicboolean: Atomic update of boolean variables
AtomicInteger: Atomic update of integer variables
AtomicLong: Atomic update long integer variables
The methods provided in the source code for each class specifically are essentially the same, and are illustrated here using AtomicInteger as an example. Some of the methods provided by AtomicInteger are as follows.