ExecutorService executor = Executors.newFixedThreadPool(10); for (int i = 0; i < 100; i++) { executor.submit(new MyRunnable()); } executor.shutdown();
上一篇:并发线程和数据竞争
下一篇:并发线程组