Skip to content

Commit 2783b52

Browse files
committed
Update Java Note
1 parent 2a238b7 commit 2783b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Prog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5650,7 +5650,7 @@ ExecutorService 类 API:
56505650

56515651
| 方法 | 说明 |
56525652
| ----------------------------------------------------- | ------------------------------------------------------------ |
5653-
| void shutdown() | 线程池状态变为 SHUTDOWN,等待任务执行完后关闭线程池,不会接收新任务,但已提交任务会执行完,而且也可以添加线程(不绑定ren'wu) |
5653+
| void shutdown() | 线程池状态变为 SHUTDOWN,等待任务执行完后关闭线程池,不会接收新任务,但已提交任务会执行完,而且也可以添加线程(不绑定任务) |
56545654
| List<Runnable> shutdownNow() | 线程池状态变为 STOP,用 interrupt 中断正在执行的任务,直接关闭线程池,不会接收新任务,会将队列中的任务返回 |
56555655
| boolean isShutdown() | 不在 RUNNING 状态的线程池,此执行者已被关闭,方法返回 true |
56565656
| boolean isTerminated() | 线程池状态是否是 TERMINATED,如果所有任务在关闭后完成,返回 true |

0 commit comments

Comments
 (0)