Code example for ReadWriteLock

Methods: writeLock