摘要: 1、问题:为什么 testVO方法能够通过锁解决原子性问题,testVo1方法不能够通过锁解决原子性问题? public class TestVolatile { private volatile int num = 0; private int count = 0;//完成线程累加 private 阅读全文
posted @ 2021-07-16 17:15 小老弟1999 阅读(878) 评论(0) 推荐(0) 编辑