The new C++ standard introduces the notion of a memory model. There were already questions on Stack Overflow about it, what does it mean, how does it change the way we write code in C++ and so on.
I'm interested in getting to know how does the C++ memory model relate to the older, well known Java memory model (1.5). Is it the same? Is it similar? Do they have any significant differences? If so, why?
The Java memory model has been around since a long time and many people know it quite decently, so I guess it might be helpful, not only for me, to learn the C++ memory model, by comparing it with the Java one.