采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
AtomicIntegerArray的作用是不是完全等同于AtomicInteger[] atomicIntegerArray = new AtomicInteger[1000]?
不等同,new AtomicInteger[1000]里面是1000个独立的AtomicInteger,无法做到整体保证原子性
登录后可查看更多问答,登录/注册
JUC全方位讲解,构建并发工具类知识体系
857 11
1.2k 10
847 10
848 10
1.2k 9