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.

多核问题,多核处理时用TSC测时间发现每个核的函数分开测试,时间很短,但测整个并行过程却发现时间多了两倍不止



如题,请问有知道的大佬么,这是什么原因导致的,有什么办法可以解决或者避免吗?是否是总线存取时抢占资源导致的?期间我用了两个while循环等待,使每个核保持同步,核间通信使用的是标志位来通信。。。这个问题困扰我好几天了,求回答,求帮助