Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Thread Id Problem

 
sonu raj
Ranch Hand
Posts: 43
Android C++ Java
  • Mark post as helpful
  • send pies
  • Report post to moderator


When I compile and run the above program I always gets the same output:
i.e.

9
10

I want to know why the output is always 9 and 10, why not 2 and 4 or 4 and 5.etc
Please elaborate!!

[Added code tags - see UseCodeTags]
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this thread since this is a duplicate of http://www.coderanch.com/t/589095/threads/java/Thread-Id. Sonu, please do not create multiple threads for the same question.
 
    Bookmark Topic Watch Topic
  • New Topic