java原子操作类
java.util.concurrent.atomic包里面有原子操作相关的类
一、基本的类为
1.AtomicInteger
2.AtomicLong
3.AtomicBoolean
4.AtomicReference
5.AtomicStampedReference
6.AtomicMarkableReference
二、数组类为:
1.AtomicIntegerArray
2.AtomicLongArray
3.AtomicReferenceArray
三、类
1.AtomicIntegerFieldUpdater
2.AtomicLongFieldUpdater
3.AtomicReferenceFieldUpdater
四:
1.DoubleAccumulator
2.DoubleAdder
3.LongAccumulator
4.LongAdder