jdk util concurrent 源码阅读(一)

对于object隐式锁和lock(condition)两种方式,下面问题:
1. entry set 抢锁机制
2. wait set 唤醒机制(随机?)
3. wait set 唤醒之后没有抢到锁直接放入entry set?还是继续留存wait set?
4. reentrantlock lock readwritelock 经典场景

To a great extent, the manner in which a Java Virtual Machine implementation selects the next thread from the wait or entry sets is a decision of individual implementation designers. For example, implementation designers can decide how to select:
* thread from the wait set given a notify command
* the order to resurrect threads from the wait set given a notify all command
* the order to allow threads from the entry set to acquire the monitor
* how to choose between threads suspended in the wait set versus the entry set after a notify command

阅读资料:
1. inside jvm
2. java concurrecy in practice
3. java 多线程
待补

http://robbinfan.com/blog/38/orm-cache-sumup
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值