修改bug

master
Cui YongXing 2024-09-04 17:55:52 +08:00
parent 31a83e6d5d
commit a5113341ac
1 changed files with 1 additions and 1 deletions

View File

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