aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why output is 1 2 only? 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why output is 1 2 only?" Watch "why output is 1 2 only?" New topic
Author

why output is 1 2 only?

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

this is from K&B;



SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521
because once the wait is called on the thread.which has the lock of the args objcect...it keeps waiting till someone notifies to resume again and get the lock of args...........

got it?


scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521


i created this code to notify...i get the answer 1 2 3...but please someone check this if am right?
 
Consider Paul's rocket mass heater.
 
subject: why output is 1 2 only?