美丽星月

文章
4
资源
0
加入时间
2年10月17天

线程池优雅关闭

第一种方法首先看下源码注释:A pool that is no longer referenced in a program ANDhas no remaining threads will be {@code  shutdown} automatically. Ifyou would like to ensure that unreferenced pools are reclaimed evenif users forget to call {@link &nbsp