愤怒中的小草

博客园 首页 新随笔 联系 订阅 管理

2019年3月16日 #

摘要: import java.util.concurrent.atomic.AtomicReference;//boolean compareAndSet(V expect, V update)//如果当前值 == 预期值,则以原子方式将该值设置为给定的更新值public class SpinLockDe 阅读全文
posted @ 2019-03-16 19:25 愤怒中的小草 阅读(1586) 评论(0) 推荐(0) 编辑