tweak default threadpool

This commit is contained in:
dags- 2020-02-12 13:50:40 +00:00
parent 34955123db
commit 9eaeb80ddf

View File

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