Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicate thread-id?  RSS feed

 
kri shan
Ranch Hand
Posts: 1489
  • 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: 23283
125
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!