Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/math/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Servlets Servlet线程池_Servlets_Threadpool - Fatal编程技术网

Servlets Servlet线程池

Servlets Servlet线程池,servlets,threadpool,Servlets,Threadpool,当servlet重新使用线程池中的线程时,它们所持有的所有引用返回到线程池后会发生什么情况?它们是否以某种方式设置为空?有什么想法吗?除了servlet容器本身设置的引用和您自己的代码可能存储在ThreadLocal变量中的引用之外,线程不包含任何引用 并且这些值没有设置为null

当servlet重新使用线程池中的线程时,它们所持有的所有引用返回到线程池后会发生什么情况?它们是否以某种方式设置为空?有什么想法吗?

除了servlet容器本身设置的引用和您自己的代码可能存储在ThreadLocal变量中的引用之外,线程不包含任何引用

并且这些值没有设置为null