If the thread holding a ReentrantReadWriteLock.writeLock() stops executing due to an uncaught exception, is the lock released, or is it held and all the other threads are now deadlocked?
I'm writing a java implementation for two-phase locking. So, I'm using Reentrant lock (ReadWrite lock). The problem is that when a thread executes the lock.readLock.lock() or lock.writeLock().lock() and the lock is ...
When applying a reentrantReadWriteLock, and it is locked, what happens if another thread accesses the Lock while it is already performing another block? (Thus, before it reaches the .unlock)
Is the method ...