This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicate thread-id?  RSS feed

 
kri shan
Ranch Hand
Posts: 1488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the ThreadGroup, any two threads have same thread-id?
 
Henry Wong
author
Sheriff
Posts: 22866
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Take a look at the Thread and ThreadGroup javadocs. Is there a concept of a thread-id? Or is it more based on the generic thread name?

For thread names, what happened when you tried it? Were you able to set two threads to the same name?

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!