摘要: 1.锁定的使用不符合业务逻辑 首先如果加的锁与业务逻辑不匹配,那么加的锁显然难以起到作用的 @Slf4j public class InterestingDemo { volatile int a = 1; volatile int b = 1; public synchronized void a 阅读全文
posted @ 2020-07-09 20:28 三弦音无 阅读(183) 评论(0) 推荐(0) 编辑