-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, May 17, 2000 at 11:27:00AM +0700, yangyuex wrote:
> I have several threads in one hashtable.
> When I remove one of them, whether this thread still  consume CPU etc
> resources?
> That's to say, if I will not need one thread, whether I must stop or
> destory it explictly or
> just remove it from hashtable for garbage collection?
> I am not sure how JVM schedules multiple threads.

Before the Thread can be garbage collected, it must stop
executing. The Java API docs for java.lang.Thread describe the
different circumstances under which this can occur. Beyond that, there
must not be a reference to the Thread instance which is accessible
from any other Thread which hasn't completed execution.

- --Chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE5IjUGfrrCpthD+UYRAr5kAJ9n5TmYaMe8p4btEN3izar9ZTvBwACg2QtS
GUTzvgrlAoCjUZ7On2U7akE=
=auUr
-----END PGP SIGNATURE-----


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to