tweak default threadpool
This commit is contained in:
parent
34955123db
commit
9eaeb80ddf
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user