线程池的扩展 beforeExecute() afterExecute() terminaerd()

TheadPoolExector.Worker是EhreadPoolExecutor的内部类,它是一个实现了Runnable接口的类  

beforeExecute()  线程执行之前调用

afterExecute()   线程执行之后调用

terminaerd()  线程池退出时候调用

原文地址:https://www.cnblogs.com/sg9527/p/8004502.html