The relationship between Java memory model and hardware memory architecture

Insert picture description here
For hardware memory, there are only the concepts of registers, cache memory, and main memory. There is no working memory. That is to say, the division of memory by the Java memory model has no effect on hardware memory, because JMM is only an abstract concept. It is a set of rules that does not actually exist. Regardless of whether it is data in working memory or main memory, it will be stored in the computer's main memory for computer hardware. Of course, it may also be stored in the CPU cache or register.

Therefore, in general, the Java memory model and the computer hardware memory architecture are an intersecting relationship, which is an abstract conceptual division of interaction with real physical hardware.

The most complete concurrent programming mind map in history:https://www.processon.com/view/5b1f1ad7e4b03f9d251c06e5#map

Guess you like

Origin blog.csdn.net/fd2025/article/details/108333607