4
Answers

exception in ReaderWriterLock

George George

George George

16y
2.3k
1

Hello everyone,


Two questions about exceptions from ReaderWriterLock class,

1. If I use parameter -1 (no timeout value) to acquire either read or write lock, is there any possibility there will be any exceptions?

2. When we release the lock, if the current thread is the owner, is there any possibility to throw any exceptions?


thanks in advance,
George

Answers (4)