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

并发编程---进程、线程安全 - 磊叔的技术博客 #16

Open
glmapper opened this issue Apr 23, 2022 · 0 comments
Open

并发编程---进程、线程安全 - 磊叔的技术博客 #16

glmapper opened this issue Apr 23, 2022 · 0 comments

Comments

@glmapper
Copy link
Owner

http://localhost:4000/2018/11/10/java/java-advance-juc-thread-process/

原文:https://juejin.cn/post/6844903502154563597 在 java 中,所有的变量(实例字段,静态字段,构成数组的元素,不包括局部变量和方法参数)都存储在主内存中,内个线程都有自己的工作内存,线程的工作内存保存被线程使用到的变量的主内存副本拷贝。线程对变量的所有操作都必须在工作内存中进行,为不能直接读写主内存的变量。不同线程之间也不恩能够直接访问对方工作内

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

No branches or pull requests

1 participant