S
Shirish Rai
I have a class, say A which is runnable. When A is created it creates one
or more threads. Thus each of these threads have a reference to the
instance of A. Therefore when the client that created A is done using it,
the instance of A cannot be garbage collected.
Is there any way to notify the threads to exit when the thread that
created A is done using it.
Thanks.
Shirish.
or more threads. Thus each of these threads have a reference to the
instance of A. Therefore when the client that created A is done using it,
the instance of A cannot be garbage collected.
Is there any way to notify the threads to exit when the thread that
created A is done using it.
Thanks.
Shirish.