摘要: 对于volatile对象的原子更新 AtomicReferenceFieldUpdater这个对象进行原子更新的时候,外部操作对象只能是public,因为外部访问不到private对象,但是在内内部确可以自己封装一个compareAndSet 效果展示: 阅读全文
posted @ 2018-02-27 22:24 cutter_point 阅读(350) 评论(0) 推荐(0)