特牛网址导航

JUC学习笔记——02. 集合不安全, Callable, 读写锁, 阻塞队列 和 线程池_new callable<string>()-CSDN博客

网友收藏
文章浏览阅读117次。4. 集合类不安全1. List不安全代码public class TestArrayList { public static void main(String[] args) { ArrayList<String> list = new ArrayList<>(); for (int i = 0; i < 10; i++) { new Thread(() -> { _new callable()