修改bug
parent
80e81f8111
commit
37b407316c
|
@ -9,15 +9,15 @@ public class OptimizedPrioritizedThreadPool {
|
|||
private static final Semaphore lowPrioritySemaphore;
|
||||
private static final Semaphore emergencySemaphore;
|
||||
|
||||
private static final int totalThreads = 30; // 固定线程池大小
|
||||
private static final int defaultHighThreads = 16;
|
||||
private static final int defaultMediumThreads = 9;
|
||||
private static final int defaultLowThreads = 5;
|
||||
private static final int totalThreads = 50; // 固定线程池大小
|
||||
private static final int defaultHighThreads = 25;
|
||||
private static final int defaultMediumThreads = 15;
|
||||
private static final int defaultLowThreads = 10;
|
||||
|
||||
private static final int emergencyThreads = 14;
|
||||
private static final int emergencyHighThreads = 9;
|
||||
private static final int emergencyMediumThreads = 5;
|
||||
private static final int emergencyLowThreads = 2;
|
||||
private static final int emergencyThreads = 25;
|
||||
private static final int emergencyHighThreads = 13;
|
||||
private static final int emergencyMediumThreads = 7;
|
||||
private static final int emergencyLowThreads = 5;
|
||||
|
||||
private static volatile boolean inEmergencyMode = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue