Skip to content

Commit 7f98792

Browse files
committed
param
1 parent 1e2c131 commit 7f98792

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README-MulThread.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,20 @@ CountDownLatch一般用于某个线程A等待若干个其他线程执行完任
147147
ThreadFactory threadFactory; // 新建线程工厂
148148
RejectedExecutionHandler handler; // 当提交任务数超过maxmumPoolSize+workQueue之和时,任务会交给RejectedExecutionHandler来处理
149149

150+
| **参数** | **说明** |
151+
| --------------- | ------------------------------------------------------------ |
152+
| corePoolSize | 核心线程池大小 |
153+
| maximumPoolSize | 最大线程池大小 |
154+
| keepAliveTime | 线程池中超过corePoolSize时空闲线程的最大存活时间 |
155+
| unit | keepAliveTime的时间单位 |
156+
| workQueue | 阻塞任务队列 |
157+
| threadFactory | 线程工厂 |
158+
| handler | 当提交任务数超过(maximumPoolSize+workQueue)时,任务会交给handler来处理 |
159+
160+
161+
150162
#### BlockingQueue阻塞队列 ####
163+
151164
- ArrayBlockingQueue
152165

153166
基于数组实现的一个阻塞队列,在创建ArrayBlockingQueue对象时必须制定容量大小。并且可以指定公平性与非公平性,默认情况下为非公平的,即不保证等待时间最长的队列最优先能够访问队列。

0 commit comments

Comments
 (0)