Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.java内存模型以及happens-before规则 #5

Open
Lubyam opened this issue Aug 16, 2018 · 0 comments
Open

3.java内存模型以及happens-before规则 #5

Lubyam opened this issue Aug 16, 2018 · 0 comments

Comments

@Lubyam
Copy link

Lubyam commented Aug 16, 2018

原文中写到:
在<<深入理解Java虚拟机>>中看到的定义。原文如下: 当多个线程访问同一个对象时,如果不用考虑这些线程在运行时环境下的调度和交替运行,也不需要进行额外的同步,或者在调用方进行任何其他的协调操作,调用这个对象的行为都可以获取正确的结果,那这个对象是线程安全的。

其中加粗的地方应该是或者在调用方不进行任何其他的协调操作吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant