Why am I getting IllegalMonitorStateException with this code?

前端 未结 0 1745
醉梦人生
醉梦人生 2021-02-05 01:04

I have 2 threads, one calls get() method, another put() method. I need to synchronize this methods in order to see result of get only after put. I do know how to do this other w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题