会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zerods的技术思考
博客园
首页
联系
订阅
管理
2020年4月21日
ReentrantLock源码解析
摘要: ReentrantLock 1 数据结构 从上图可以看出,ReentrantLock的功能都是通过sync这个对象提供的。 2 获取锁是否要走公平非公平逻辑 区分公平非公平锁,公平锁老实排队 lock lockInterruptibly tryLock(long timeout, TimeUnit
阅读全文
posted @ 2020-04-21 14:25 zerodseu
阅读(122)
评论(0)
推荐(0)
编辑
公告