tweak thread pool again

This commit is contained in:
dags- 2020-02-17 08:29:25 +00:00
parent b550a63ca4
commit eaf0be6ef2
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import java.util.concurrent.Future;
public class ThreadPool {
public static final int DEFAULT_POOL_SIZE = Math.max(4, Runtime.getRuntime().availableProcessors() - 1);
public static final int DEFAULT_POOL_SIZE = Math.max(2, (Runtime.getRuntime().availableProcessors() / 2) + 1);
private static final Object lock = new Object();