[Java并发包学习一]Executor和ExecutorService
本文介绍jdk8并发包中的Executor/ExecutorService这两个接口。
Executor接口
概述
该类提供一个提交任务的方法,提交的任务可以在提交程序本线程运行,也可以在不同的线程运行,也可以在一个线程池中的线程运行,全看如何使用。
However, the {@code Executor} interface does not strictly
req
转载
2016-07-02 10:43:30 ·
426 阅读 ·
0 评论