开发者

How does _mm_mwait work?

开发者 https://www.devze.com 2022-12-26 00:25 出处:网络
How does _mm_mwait from pmmintrin.h work? (I mean not the asm for it, but action and how this action is taken in NUMA systems. The store monitoring is easy to implement only on bus-based SMP systems w

How does _mm_mwait from pmmintrin.h work? (I mean not the asm for it, but action and how this action is taken in NUMA systems. The store monitoring is easy to implement only on bus-based SMP systems with snooping of bus.)

What processors 开发者_如何学Pythondoes implement it?

Is it used in some spinlocks?


Every time a CPU on a multicore chip tries to write a specific memory address, all other CPUs, which have this particular memory address in their caches, have to be notified of that change. This notification could be used to implement the wakeup from MWAIT on modern CPUs independent of them having a single or separate memory busses.

What processors does implement it?

MWAIT is part of SSE3.

Is it used in some spinlocks?

This is contrary to the definition of a spinlock - the CPU is not busy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号