3 ms·
I know how to do a spinlock in pthreads, and have done it using a while loop and what I hope was an atomic instruction. What is a `machine level exchange instr
by frozenport 13y ago
I know how to do a spinlock in pthreads, and have done it using a while loop and what I hope was an atomic instruction.
What is a `machine level exchange instruction`?
- mbell 13y ago> What is a `machine level exchange instruction`? http://en.wikipedia.org/wiki/Compare-and-swap http://en.wikipedia.org/wiki/Compare-and-swap
- deleted 13y ago[deleted]