cache
Thread A storing a value “X=17” may cause issue as Thread B’s “X” in L1 cache is not overwritten. This is solved by the keyword “volatile”
Thread A storing a value “X=17” may cause issue as Thread B’s “X” in L1 cache is not overwritten. This is solved by the keyword “volatile”