mirror of
https://github.com/CyC2018/CS-Notes.git
synced 2026-03-13 09:50:42 +08:00
@@ -130,7 +130,7 @@ class MyThread extends Thread {
|
||||
|
||||
Executor 管理多个异步任务的执行,而无需程序员显示地管理线程的生命周期。
|
||||
|
||||
主要有三种 Excutor:
|
||||
主要有三种 Executor
|
||||
|
||||
1. CachedTreadPool:一个任务创建一个线程;
|
||||
2. FixedThreadPool:所有任务只能使用固定大小的线程;
|
||||
|
||||
Reference in New Issue
Block a user