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 
normal queue, the executor will spawn threads when there are idle threads and 
you wont be able to force items onto the queue itself.". But when we use 
java.util.concurrent.LinkedBlockingQueue, it will be put into the queue by 
default instead of creating threads. What queue does the normal queue in the 
comment refer to?


Thanks,
tianshuang

Reply via email to