List<String> list = Arrays.asList("a","b","c","d");
ExecutorService service = Executors.newFixedThreadPool(2);
service.execute(() -> list.parallelStream().forEach(System.out::println));
这样一段代码什么都没输出,而将parallelStream去掉就可以输出,这是什么机制?谁能解释下
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…