修改bug

master
Cui YongXing 2024-09-04 20:47:06 +08:00
parent 9c00d9fa0f
commit ea571fe542
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class OptimizedPrioritizedThreadPool {
// 创建固定大小的线程池 // 创建固定大小的线程池
executor = new ThreadPoolExecutor( executor = new ThreadPoolExecutor(
totalThreads, totalThreads, totalThreads, totalThreads,
300L, TimeUnit.SECONDS, 60L, TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>() // 使用无界的阻塞队列 new LinkedBlockingQueue<Runnable>() // 使用无界的阻塞队列
); );
highPrioritySemaphore = new Semaphore(defaultHighThreads); highPrioritySemaphore = new Semaphore(defaultHighThreads);