wood burning stoves 2.0*
The moose likes Servlets and the fly likes Thread Id Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Thread Id Problem

sonu raj
Ranch Hand

Joined: Jul 31, 2012
Posts: 43



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

Joined: Jul 20, 2005
Posts: 10207
    
166

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.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread Id Problem