4 ms·
Object.wait() releases the monitor lock though. This specific case doesn't have to do with synchronized at all, but with wait() being a native call.
by xmcqdpt2 3y ago
Object.wait() releases the monitor lock though. This specific case doesn't have to do with synchronized at all, but with wait() being a native call.
- delusional 3y agoThat makes sense to me. I'll agree to not call Object.wait() pinning.