This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于Volatile变量的问题



请问当定义多核共享的变量的时候 是否要定义成Volatile变量

多核共享的Volatile变量 是否仍然要求程序员维护cache的一致性?