, . 4- , .
,
ForkJoinPool threadPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors() * 2);
list.forEach(entry -> threadPool.execute(() -> {
}));
if (!threadPool.awaitQuiescence(4, TimeUnit.MINUTES)) {
}
, , , awaitQuiescence , . , - , ForkJoinPool?