Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
Chris's user avatar
  • 13