摘要: 根据源码发现:维护了这个可见性变量state ;同一个线程对可重入锁体现用state标记作累加,int nextc = c + acquires; private volatile int state; 阅读全文
posted @ 2018-01-16 12:53 麻雀虽小五脏俱全 阅读(406) 评论(0) 推荐(0) 编辑