1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-10 00:41:37 +08:00

Compare commits

..

No commits in common. "4b18528ac5cffed98f53edaf11917764687f11d2" and "de1f45ba01888bd4891d985d9d5f380f86814855" have entirely different histories.

View File

@ -336,7 +336,6 @@ pool-1-thread-4 End. Time = Sun Apr 12 11:14:47 CST 2020
pool-1-thread-5 End. Time = Sun Apr 12 11:14:47 CST 2020
pool-1-thread-3 End. Time = Sun Apr 12 11:14:47 CST 2020
pool-1-thread-2 End. Time = Sun Apr 12 11:14:47 CST 2020
Finished all threads // 任务全部执行完了才会跳出来因为executor.isTerminated()判断为true了才会跳出while循环当且仅当调用 shutdown() 方法后,并且所有提交的任务完成后返回为 true
```