使用ReentrantReadWriteLock类

读读共享

类ReentrantReadWriteLock的使用:写写互斥

 

读写互斥

原文地址:https://www.cnblogs.com/duan2/p/7768685.html