illegalmonitorstateexcep
What can cause IllegalMonitorStateException from inside a synchronized block?
We hit an extremely surprising exception today. Inside of a synchronized block, we call wait() and it throws IllegalMonitorStateException. What can cause this?[详细]
2023-04-06 06:14 分类:问答Threads synchronizing in Java, IllegalMonitorStateException
I am trying to synchronize two threads - the \"Main\" thread, and a runnable. I get the IllegalMonitorStateException, but I do not completelty understand what \"you do not have the lock of the object\[详细]
2023-01-17 09:27 分类:问答