修改bug

master
Cui YongXing 2024-09-04 23:44:02 +08:00
parent 80e81f8111
commit 37b407316c
1 changed files with 8 additions and 8 deletions

View File

@ -9,15 +9,15 @@ public class OptimizedPrioritizedThreadPool {
private static final Semaphore lowPrioritySemaphore; private static final Semaphore lowPrioritySemaphore;
private static final Semaphore emergencySemaphore; private static final Semaphore emergencySemaphore;
private static final int totalThreads = 30; // 固定线程池大小 private static final int totalThreads = 50; // 固定线程池大小
private static final int defaultHighThreads = 16; private static final int defaultHighThreads = 25;
private static final int defaultMediumThreads = 9; private static final int defaultMediumThreads = 15;
private static final int defaultLowThreads = 5; private static final int defaultLowThreads = 10;
private static final int emergencyThreads = 14; private static final int emergencyThreads = 25;
private static final int emergencyHighThreads = 9; private static final int emergencyHighThreads = 13;
private static final int emergencyMediumThreads = 5; private static final int emergencyMediumThreads = 7;
private static final int emergencyLowThreads = 2; private static final int emergencyLowThreads = 5;
private static volatile boolean inEmergencyMode = false; private static volatile boolean inEmergencyMode = false;