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.

如何知道多个核对同一个变量的读取有没有同时发生?



从原理上来说,多个核对同一个变量或同一储存器位置进行读操作应该是可以同时进行的,那么我们怎么知道有没有发生同时读取的情形?

另外还想附带问一下,写操作,如何保证多个核之间的写不冲突?它们有优先级么?有队列么?

本人菜鸟,望大神指点,谢谢!