2012年5月13日

Java Volatile的双重含义

摘要: http://www.ibm.com/developerworks/cn/java/j-jtp06197.htmlVolatile 的含义包含以下两层意思:多个线程每次读取的volatile变量值都是最新的,即便该变量值是被其他线程设置JDK5 and later extends the semantics for volatile so that the system will not allow a write of a volatile to be reordered with respect to any previous read or write, and a read of a 阅读全文

posted @ 2012-05-13 21:59 daition 阅读(270) 评论(0) 推荐(0) 编辑

导航