ScheduledExecutorService 正在运行 数量
时间: 2023-10-13 20:04:35 浏览: 70
根据引用中提到的,ScheduledExecutorService是一个接口,java.util.concurrent包中的ScheduledExecutorService的类实现了该接口,其中一个实现类是ScheduledThreadPoolExecutor。通过引用中的代码,可以创建一个ScheduledExecutorService实例:ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(5)。这里创建了一个ScheduledExecutorService实例,并指定了线程池的大小为5。所以,在这个例子中,ScheduledExecutorService正在运行的线程数量是5。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [JAVA并发-ScheduledExecutorService](https://blog.csdn.net/cgsyck/article/details/107782607)[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: 100%"]
[ .reference_list ]
阅读全文