摘要:
创建目标对象 static class Simple{ private long l = 0; public Simple() { this.l = 1; System.out.println(" "); } public long get() { return this.l; } } 创建对象实例 阅读全文
摘要:
AtomicIntegerFieldUpdater测试类 package com.dwz.atomicApi; import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; public class AtomicIntegerFieldU 阅读全文
摘要:
package com.dwz.atomicApi; import java.util.concurrent.atomic.AtomicBoolean; public class AtomicBooleanFlag { private final static AtomicBoolean flag 阅读全文