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

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(104)

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

ThreadPoolExecutor.processWorkerExit介绍

[英]Performs cleanup and bookkeeping for a dying worker. Called only from worker threads. Unless completedAbruptly is set, assumes that workerCount has already been adjusted to account for exit. This method removes thread from worker set, and possibly terminates the pool or replaces the worker if either it exited due to user task exception or if fewer than corePoolSize workers are running or queue is non-empty but there are no workers.
[中]为垂死的工人进行清理和记账。仅从工作线程调用。除非设置了“突然完成”,否则假定workerCount已被调整以考虑退出。此方法从工作线程集中删除线程,如果由于用户任务异常而退出,或者如果正在运行的工作线程少于corePoolSize,或者队列非空但没有工作线程,则可能会终止池或替换工作线程。

代码示例

代码示例来源:origin: robovm/robovm

processWorkerExit(w, completedAbruptly);

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

processWorkerExit(w, completedAbruptly);

代码示例来源:origin: MobiVM/robovm

processWorkerExit(w, completedAbruptly);

代码示例来源:origin: ibinti/bugvm

processWorkerExit(w, completedAbruptly);

代码示例来源:origin: com.bugvm/bugvm-rt

processWorkerExit(w, completedAbruptly);

代码示例来源:origin: com.gluonhq/robovm-rt

processWorkerExit(w, completedAbruptly);

代码示例来源:origin: FlexoVM/flexovm

processWorkerExit(w, completedAbruptly);

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

processWorkerExit(w, completedAbruptly);

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

processWorkerExit(w, completedAbruptly);

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

processWorkerExit(w, completedAbruptly);

相关文章

ThreadPoolExecutor类方法