Re: About the comment of org.apache.tomcat.util.threads.TaskQueue

2021-10-25 Thread Poison
Thank you, I know the role of TaskQueue, but the comment about "normal queue" on the TaskQueue class is still incomprehensible. In the java.util.concurrent.ThreadPoolExecutor#execute method, the comment mentions: "3. If we cannot queue task, then we try to add a new thread. If it fails, we kno

Re: About the comment of org.apache.tomcat.util.threads.TaskQueue

2021-10-25 Thread Christopher Schultz
tianshuang, On 10/23/21 23:44, Poison wrote: Tomcat version: 8.5.72 org.apache.tomcat.util.threads.TaskQueue source code: https://github.com/apache/tomcat/blob/8.5.72/java/org/apache/tomcat/util/threads/TaskQueue.java#L33 In the comments of the TaskQueue class, it mentions "If you use a nor