How does the Java VM work with line and memory alignment in MT contexts?

According to the subject, if in C / C ++ it is easy to find the cache line size and solve this problem when developing effective MT code, how does the Java VM deal with this?

Greetings

+3
source share
2 answers

This is usually not the case. You have to solve it yourself. If this is really important, you may need to use JNI to get low-level system information.

Java, on the other hand, simplifies the writing of an MT application by supporting it in the language from the very beginning.

+3
source

There is a very good chance that Java will begin to deal with this as with Java 8. JEP 142 states:

, , , , . . , , , , .

, .

+2

All Articles