Board index » jbuilder » Does thread has ID, if exists, how to get it?

Does thread has ID, if exists, how to get it?


2005-01-08 12:53:57 AM
jbuilder23
Howdy,
In java, is there only ID represents for a thread?
if exist, how to get it?
Best Regards.
 
 

Re:Does thread has ID, if exists, how to get it?

Chris Wahl wrote:
Quote
In java, is there only ID represents for a thread?
if exist, how to get it?
There's a thread *name*, but it's only for display, it's not unique, and
it's not a key that you can use to locate the thread later.
What are you trying to do?
 

Re:Does thread has ID, if exists, how to get it?

Chris Wahl wrote:
Quote
Howdy,

In java, is there only ID represents for a thread?
if exist, how to get it?

Best Regards.
If you have multiple threads of execution that you need to communicate
with you might want to look at creating a set of classes that uses the
Listener Design pattern.
--
David Orriss Jr. *TeamB*
www.davenet.net/
* Please limit all responses to the newsgroups. Thanks! *
Got a JBuilder website? Join the JBuilder Netring! Check out
www.davenet.net/jbwebring/jbwebring.htm for more information!
My blog: mywebpages.comcast.net/daorriss/
Save yourself some time and check these sites:
Borland Newsgroup Search:
www.borland.com/newsgroups/ngsearch.html
Joi Ellis's Faq-O-Matic:
www.visi.com/~gyles19/fom-serve/cache/1.html
 

{smallsort}