News for hackers. Stuff that matters.
Re:A spin lock in C that does not require a machine level ex... by frozenport on Sunday May 04, 2014 @08:15PM (#7696407)
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`?

Re:A spin lock in C that does not require a machine level ex... by mbell on Sunday May 04, 2014 @08:22PM (#7696432)
> What is a `machine level exchange instruction`?

http://en.wikipedia.org/wiki/Compare-and-swap