Jack
Posts: 10
Nickname: zyppora
Registered: Jan, 2005
|
|
Re: Thread
|
Posted: Jun 6, 2005 4:53 AM
|
|
Been awhile since I did Java, but here's what I think:
What you're doing is taking a name, say 'Thread1', and you create a thread, to which the name 'Thread1' points. The thread itself is not affected by whatever name you give it.
However, when you create another thread and you give it the same name, i.e. you have the name 'Thread1' point to the second thread, you will lose the reference to the first thread you created.
It's always good to keep your reference to a thread, or have it run with a user interface (so at least you, if not the script, can get to it in order to kill it eventually).
|
|