SCJP 5.0<br />SCWCD 1.4<br />SCBCD 1.3<br />SCEA part 1
After that there are two cases may happen:
1) the Calculator thread return from the run() method. Then all of Reader run to call wait() method. In this case, all Reader threads will wait there. You will not see "Why the wait method is not executing again."
2) All of Reader threads run to call wait() method first and then the Calculator thread runs end of run() method and when it ends the run() method it will notifyAll other waiting threads. You will see the results printing out.
SCJP 5.0<br />SCWCD 1.4<br />SCBCD 1.3<br />SCEA part 1
Sankar Krishna Adabala
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|