Interview Question
Country: United States
General memory barriers(mb) make a guarantee that all memory accesses specified before the barrier will happen before all memory accesses specified after the barrier.
Read memory barriers(rmb) make a guarantee that all memory reads specified before the barrier will happen before all memory reads specified after the barrier.
Write memory barriers(wmb) make a guarantee that all memory writes specified before the barrier will happen before all memory writes
please give the explanation to the above question.thanks in advance
- rameshandroid99 February 15, 2013