![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线程锁
qq_36283674
这个作者很懒,什么都没留下…
展开
-
读写锁的一个疑惑点
/** * Full version of acquire for reads, that handles CAS misses * and reentrant reads not dealt with in tryAcquireShared. */ final int fullTryAcquireShared(Thread current) { /* * This co...原创 2021-04-30 15:11:55 · 164 阅读 · 2 评论 -
System.out.println会影响内存可见性
println源代码中使用了synchronized锁,在获取锁的时候会清空工作内存,重新从主内存中读取数据。原创 2020-03-14 17:12:41 · 391 阅读 · 0 评论