As title says, curious what happens to the readwritelock when the current thread crash.
readlock.lock();
try {
...
} finally {
readlock.unlock();
}
We can definitely unlock in the finally block to prevent any abruption. But what if the readLock.lock() statement crashes, does the lock automatically released?
Thanks,