ThreadPoolExecutor executor = new ThreadPoolExecutor(6, 10, 5, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
for (int i = 0; i < 100; i++) {
executor.execute(new ParameterizedThread<>(i, (p) -> {
System.out.println(p.toString());
}));
}
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx