Code example for ReentrantReadWriteLock

Methods: readLock, writeLock