read lock (加读锁后可以加读锁,不能加写锁)
表共享读锁
RR 不互斥
RW 互斥
write lock(加写锁后不能加读锁,也不能加写锁)
独占写锁
WR 互斥
WW 互斥
写锁是排它锁