摘要: 一,模拟并发代码: 线程不安全的代码 二,二.原子性-Atomic包1.AtomicInteger类中提供了incrementAndGet方法; public final int incrementAndGet() { return unsafe.getAndAddInt(this, valueOf 阅读全文
posted @ 2018-09-10 21:31 inspire0x001 阅读(301) 评论(0) 推荐(0) 编辑