
jmm
JsonJ123
这个作者很懒,什么都没留下…
展开
-
Fixing the Java Memory Model, Part 1
Java theory and practiceFixing the Java Memory Model, Part 1What is the Java Memory Model, and how was it broken in the first place?Brian GoetzPublished on February 24, 2004转载 2017-07-20 10:48:54 · 529 阅读 · 0 评论 -
Fixing the Java Memory Model, Part 2
Java theory and practiceFixing the Java Memory Model, Part 2How will the JMM change under JSR 133?Brian GoetzPublished on March 30, 2004FacebookTwitterLinked InGo转载 2017-07-20 10:50:12 · 414 阅读 · 0 评论 -
安全发布和安全初始化
https://shipilev.net/blog/2014/safe-public-construction/原创 2017-09-01 14:13:12 · 307 阅读 · 0 评论 -
ConcurrentHashMap
https://www.burnison.ca/articles/the-concurrency-of-concurrenthashmaphttps://www.ibm.com/developerworks/library/j-jtp08223/index.htmlhttp://wiki.jikexueyuan.com/project/java-collection/concurrenthashma原创 2017-09-01 18:53:44 · 155 阅读 · 0 评论 -
jmm知识点
原子性: 对象类型: 对象地址读写,原子操作 并发读不可变状态,线程安全 并发读写可变状态,非线程线程 基本类型: int,char数值读写,原子操作 long,double高低位,非原子操作 i++等组合操作,非原子操作可见性: final 初始化final字段确保可见性 volatile 读写volatile字段确保可见性 synchronized 同步块内读写字段确原创 2017-11-01 16:19:45 · 288 阅读 · 0 评论