ReentrantReadWriteLock的写锁 “加锁”的过程:

 ReentrantReadWriteLock的写锁 “释放锁” 的过程:

 参考文档:读写锁ReadWriteLock的实现原理