Java线程池销毁需调用shutdown()或shutdownNow()方法,shutdown()会等待任务执行完毕,shutdownNow()则尝试中断所有任务,两者都会拒绝新任务提交。
在线咨询: QQ交谈
邮件:HI@E.KD.CN