| 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?
|
 |
 |
|
|
subject: why output is 1 2 only?
|
|
|