Are assignments to non-volatile member variables in one thread guaranteed to be seen in another thread?

后端 未结 2 780
故里飘歌
故里飘歌 2021-01-05 05:52

Consider the Java example below. Notice that neither of the class member variables are declared to be volatile. If I am understanding the memory model and \"hap

2条回答
提交回复
热议问题