Thread reference in Hashtable

What effect if any is there on a reference to a running thread held in a Hashtable, should the thread no longer be running?
LVL 17
Who is Participating?
A reference to a Thread is just that: a reference. Whether the Thread runs or not is not connected to where the reference is held; an array, a variable, or a hash table. The reference merely provides data which are a means to controlling, or obtaining information about, the Thread by calling methods of the Thread class.

So it makes no difference, conceptually, whether the Thread is running or not.
Now the details of your program may or may not impose some kind of constraint. But that is the more specific situation.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.