We all know that in order to invoke Object.wait(), this call must be placed in synchronized block, otherwise an IllegalMonitorStateException is thrown. But what\'s t
When a thread invokes d.wait, it must own the intrinsic lock for d —
otherwise an error is thrown. Invoking wait inside a synchronized
method is a simple way to acquire the intrinsic lock.