public static void main(String[] args) throws InterruptedException {
//创建一个原子Integer类型值为100
final AtomicInteger atomicInteger = new AtomicInteger(100);
//为了解决ABA问题使用jdk提供的 AtomicStampedReference
final AtomicStampedReference<Integer> reference = new AtomicStampedReference<Integer>(100, 0);