jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

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 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

Joined: Jul 20, 2005
Posts: 10441

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
It's not a secret anymore!