ReentrantLock代替synchronized手动上锁,trylock尝试上锁,lockInterruptibly设定该锁可以打断,实现公平锁

NoSuchKey

猜你喜欢

转载自blog.csdn.net/weixin_44893585/article/details/104581418