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

Java用什么机制实现了进程之间的同步执行? #46

Open
strongant opened this issue Apr 3, 2017 · 1 comment
Open

Java用什么机制实现了进程之间的同步执行? #46

strongant opened this issue Apr 3, 2017 · 1 comment

Comments

@strongant
Copy link
Owner

A.监视器
B.虚拟机
C.多个CPU
D.异步调用

@strongant
Copy link
Owner Author

答案:A
解析:在JVM中使用监视器锁来实现不同线程的异步执行,在语法的表现使用synchronized。

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