JDK1.8 併發之線程池

Executor框架 Executor是基礎接口,執行Runnable任務。將任務提交和任務執行細節解耦。java public interface Executor { void execute(Runnable command); } ExecutorService 接口繼承了Executor,提供了管理功能(shutdown等方法),和更全面的提交任務機制(submit方法返回Fut
相關文章
相關標籤/搜索