auto commit
This commit is contained in:
parent
ee23c9800c
commit
3ac76f97e9
|
@ -130,7 +130,8 @@ class MyThread extends Thread {
|
|||
|
||||
Executor 管理多个异步任务的执行,而无需程序员显示地管理线程的生命周期。
|
||||
|
||||
主要有三种 Executor
|
||||
主要有三种 Executor:
|
||||
|
||||
|
||||
1. CachedTreadPool:一个任务创建一个线程;
|
||||
2. FixedThreadPool:所有任务只能使用固定大小的线程;
|
||||
|
|
Loading…
Reference in New Issue
Block a user