sotn
sotn

Reputation: 2101

Servlet thread pool

When threads are re-used from a thread-pool by a servlet, what happens to all the references they hold once they are returned to the pool? Are they somehow set to null? Any ideas?

Upvotes: 0

Views: 203

Answers (1)

JB Nizet
JB Nizet

Reputation: 691785

The thread doesn't hold any reference, other than those set by the servlet container itself, and those potentially stored in a ThreadLocal variable by your own code.

And those are not set to null.

Upvotes: 1

Related Questions