阅读背景:

我能在多核x86 CPU上强制缓存一致性吗?

来源:互联网 

The other week, I wrote a little thread class and a one-way message pipe to allow communication between threads (two pipes per thread, obviously, for bidirectional communication). Everything worked fine on my Athlon 64 X2, but I was wondering if I'd run into any problems if both threads were looking at the same variable and the local cached value for this variable on each core was out of sync.The other week, I wrote a little thread class a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: