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.

c6678 数据共享问题



问题描述:使用6678  设定全局变量flag(flag 存储位置 为共享内存从内存中观测,flag在每个核心的存储地址都是一样的)  然后在 核心0把全局变量flag置1,然后想要在其他核心使用flag变量,发现flag的值在其他核心还是0,只有在核心0flag的值为 1 。 。我个人理解是数据放在共享内存就能数据共享了,但是结果并不是,请教下数据共享,还需要注意设置什么地方???  什么原因导致的这个现象??