java.util.concurrent.ForkJoinPool.startTerminating()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中java.util.concurrent.ForkJoinPool.startTerminating()方法的一些代码示例,展示了ForkJoinPool.startTerminating()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ForkJoinPool.startTerminating()方法的具体详情如下:
包路径:java.util.concurrent.ForkJoinPool
类名称:ForkJoinPool
方法名:startTerminating

ForkJoinPool.startTerminating介绍

[英]Runs up to three passes through workers: (0) Setting termination status for each worker, followed by wakeups up to queued workers; (1) helping cancel tasks; (2) interrupting lagging threads (likely in external tasks, but possibly also blocked in joins). Each pass repeats previous steps because of potential lagging thread creation.
[中]最多运行三次通过工作线程:(0)为每个工作线程设置终止状态,然后唤醒排队的工作线程;(1) 帮助取消任务;(2) 中断滞后线程(可能在外部任务中,但也可能在联接中被阻止)。由于潜在的线程创建滞后,每个过程都会重复前面的步骤。

代码示例

代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166

startTerminating();

代码示例来源:origin: jtulach/bck2brwsr

startTerminating();

代码示例来源:origin: org.apidesign.bck2brwsr/emul

startTerminating();

相关文章

ForkJoinPool类方法