hmmm....
yes, I see what you mean...
so are the Reader threads able to get to their
wait code
before the calculator notifies them all?
Is is right that each of the threads calls
start without
waiting for the last thread to complete it's run?
If there are no threads waiting when
notifyAll is reached,
what happens then?
Confused Bob
Which one is the correct version? the book says:
public static void main (
String [] args) {
Calculator calculator = new Calculator();
new Reader(calculator).start();
new Reader(calculator).start();
new Reader(calculator).start();
calculator.start();
}
[ February 25, 2004: Message edited by: Bob Chandler ]
[ February 25, 2004: Message edited by: Bob Chandler ]