理清楚概念,混淆概念会造成理解混乱:
executor是一个接口;
executor和线程池的关系:
Most of the executor implementations in java.util.concurrent use thread pools, which consist of worker threads. This kind of thread exists separately from the Runnable and Callable tasks it executes and is often used to execute multiple tasks.
参考:http://docs.oracle.com/javase/tutorial/essential/concurrency/pools.html
理清楚概念,混淆概念会造成理解混乱:
最新推荐文章于 2022-03-31 17:45:50 发布