[concurrency-interest] spinLoopHint() JEP draft discussion
jsampson at guidewire.com
Mon Oct 12 16:38:04 EDT 2015
Andrew Haley wrote:
> On 11/10/15 17:42, thurstonn wrote:
> > How exactly does this work?
> > My understanding (very, very limited), was that MWAIT works with
> > a memory address, pseudo:
> > "continue execution upon a write to memory location X" ,
> > but the proposed spinLoopHint() doesn't take any argument.
> spinLoopHint() is just a PAUSE instruction. It's not an MWAIT.
Somewhere along the way, Doug had mentioned MWAIT as a different but
related concept: PAUSE is to yield() as MWAIT is to park().
(And yes, the specific proposal for spinLoopHint() is to use PAUSE.)
More information about the Concurrency-interest