Skip to content

Commit 103ad7a

Browse files
committed
调整线程池
1 parent a6e5227 commit 103ad7a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Multithread/src/com/juc/pool/ThreadPoolExecutorDemo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
public class ThreadPoolExecutorDemo {
1313
public static void main(String[] args) {
14-
ExecutorService threadpools = new ThreadPoolExecutor(3, 5, 1l,
14+
ExecutorService threadpools = new ThreadPoolExecutor(
15+
3,
16+
5,
17+
1l,
1518
TimeUnit.SECONDS,
1619
new LinkedBlockingDeque<>(3),
1720
Executors.defaultThreadFactory(),

0 commit comments

Comments
 (0)