摘要:
简介: An object that executes submitted {@link Runnable} tasks. 这个接口提供了一种将任务提交与每个任务的运行机制分离的方法。通常使用{@code Executor}而不是显式创建线程。 例如: 不是为每一个任务调度 new Thread(n 阅读全文
posted @ 2020-09-06 19:57
一骑红尘妃子笑!
阅读(1045)
评论(0)
推荐(0)
摘要:
ThreadPoolExecutor类提供了三个Hook methods,这三个方法一般用作被子类重写: protected void beforeExecute(Thread t, Runnable r) { } protected void afterExecute(Runnable r, Th 阅读全文
posted @ 2020-09-06 16:36
一骑红尘妃子笑!
阅读(323)
评论(0)
推荐(0)
浙公网安备 33010602011771号