Dear all,
In the book of K&B, there is an example about how to use notifyAll() for
thread communication. However, in the class Calculator below, if I remove the notifyAll(), the program stills works well. Can anybody tell me why?
And here is the result, it's the same with or without notifyAll().