j*****8 发帖数: 3635 | 1 下面这段话是java doc里的
What's more, it also means that when a thread reads a volatile variable, it
sees not just the latest change to the volatile, but also the side effects
of the code that led up the change
最后那半句怎么理解? but also the side effects of the code that led up the
change
多谢 | w**z 发帖数: 8232 | 2 http://stackoverflow.com/questions/9169232/java-volatile-and-si
it
【在 j*****8 的大作中提到】 : 下面这段话是java doc里的 : What's more, it also means that when a thread reads a volatile variable, it : sees not just the latest change to the volatile, but also the side effects : of the code that led up the change : 最后那半句怎么理解? but also the side effects of the code that led up the : change : 多谢
|
|