Skip to content

Commit e583e61

Browse files
committed
某互联网大厂的题目
1 parent 9ad04d7 commit e583e61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme/thread-pool.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# FixedThreadPool与CachedThreadPool的区别,内部使用的是什么队列
22

3-
直接贴源码
3+
写下测试代码
44
```java
55
ExecutorService cachedThreadPool = Executors.newCachedThreadPool();
66
ExecutorService fixedThreadPool = Executors.newFixedThreadPool(3);
77
ExecutorService scheduled = Executors.newScheduledThreadPool(3);
88

99
```
10-
查看下源码
10+
查看下几个构造方法的源码
1111
```java
1212

1313
/**

0 commit comments

Comments
 (0)