All Questions
1 question
1
vote
1
answer
507
views
My java unit test failed if there is a call to wait method inside a synchronized method
I am learning multi-threads programming in java recently. And I don't understand why the following test case will fail. Any explanation will be much appreciated.
Here is MyCounter.java.
public class ...