We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
章节 请描述详细的章节 https://redspider.gitbook.io/concurrent/di-san-pian-jdk-gong-ju-pian/12#id-12.2.4-threadpoolexecutor-ru-he-zuo-dao-xian-cheng-fu-yong-de
相关截图或文字 非核心线程会workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) ,如果超时还没有拿到,下一次循环判断compareAndDecrementWorkerCount就会返回null,Worker对象的run()方法循环体的判断为null,任务结束,然后线程被系统回收 。
修正意见 请描述修正意见,如果可以,请直接提PR,谢谢~ #146
The text was updated successfully, but these errors were encountered:
No branches or pull requests
章节
请描述详细的章节
https://redspider.gitbook.io/concurrent/di-san-pian-jdk-gong-ju-pian/12#id-12.2.4-threadpoolexecutor-ru-he-zuo-dao-xian-cheng-fu-yong-de
相关截图或文字
非核心线程会workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) ,如果超时还没有拿到,下一次循环判断compareAndDecrementWorkerCount就会返回null,Worker对象的run()方法循环体的判断为null,任务结束,然后线程被系统回收 。
修正意见
请描述修正意见,如果可以,请直接提PR,谢谢~
#146
The text was updated successfully, but these errors were encountered: