fix
This commit is contained in:
parent
f85bf1ce3b
commit
8e5821a2d6
@ -11,7 +11,7 @@ import java.util.concurrent.*;
|
||||
*/
|
||||
public class ThreadPoolUtil {
|
||||
|
||||
private static final int CORE_POOL_SIZE = Runtime.getRuntime().availableProcessors();
|
||||
private static final int CORE_POOL_SIZE = Runtime.getRuntime().availableProcessors() + 1;
|
||||
private static final int MAX_POOL_SIZE = CORE_POOL_SIZE * 2 + 1;
|
||||
private static final int QUEUE_CAPACITY = 500;
|
||||
private static final long KEEP_ALIVE_TIME = 60L;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user