Code example for ReadWriteLock

Methods: readLock, writeLock