mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-08-14 05:21:42 +08:00
Compare commits
No commits in common. "4b18528ac5cffed98f53edaf11917764687f11d2" and "de1f45ba01888bd4891d985d9d5f380f86814855" have entirely different histories.
4b18528ac5
...
de1f45ba01
@ -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-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-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
|
pool-1-thread-2 End. Time = Sun Apr 12 11:14:47 CST 2020
|
||||||
Finished all threads // 任务全部执行完了才会跳出来,因为executor.isTerminated()判断为true了才会跳出while循环,当且仅当调用 shutdown() 方法后,并且所有提交的任务完成后返回为 true
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user