0

Memory barrier is to ensure the ordring of memory access, and there are several blogs describe what it is.
But I am still trying to find a typical (man forged) case to show its value. I tried the codes in this link https://blog.csdn.net/zhangxiao93/article/details/42966279.
But I am not sure if that code is correct to show the wrong result without using memory barrier.
Any link or code snippet is appreciated.

wangt13
  • 959
  • 7
  • 17

0 Answers0