executorService
时间: 2023-10-02 18:10:09 浏览: 124
ExecutorService是一个接口,它是Executor的子接口。ExecutorService扩展了Executor的功能,提供了更多的方法来处理异步任务的执行和管理,比如提交任务、取消任务、获取任务执行结果等。ExecutorService可以通过Executors类的静态方法创建,比如newFixedThreadPool、newSingleThreadExecutor等。 ExecutorService相比于Executor更加灵活和强大,可以更方便地管理和控制任务的执行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Executor, ExecutorService 和 Executors 间的不同](https://blog.csdn.net/antony9118/article/details/73457679)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [ExecutorService详解](https://blog.csdn.net/fwt336/article/details/81530581)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文