玩转并发-Executors框架

本文转自此博客 从Executor谈起 Executor该接口的目的是解耦任务本身和任务的执行。 public interface Executor { //Executor接口中只包含execute方法,该方法传入实现了Runnable接口的类 void execute(Runnable command); } Executor仅仅是一个接口,根据子类的不同实现,执行任务的具体方式也不
相关文章
相关标签/搜索