修改bug

master
Cui YongXing 2024-09-04 17:51:16 +08:00
parent a01a5a957b
commit 31a83e6d5d
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,
60L, TimeUnit.SECONDS, 120L, TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>() // 使用无界的阻塞队列 new LinkedBlockingQueue<Runnable>() // 使用无界的阻塞队列
); );
highPrioritySemaphore = new Semaphore(defaultHighThreads); highPrioritySemaphore = new Semaphore(defaultHighThreads);