Alex Rivera | Logout

What exactly are "spin-locks"?

Asked 2009-12-24T08:34:20.880
150

I always wondered what they are: every time I hear about them, images of futuristic flywheel-like devices go dancing (rolling?) through my mind...

What are they?

Edit
Report

1 Answer

-1

In nutshell, spinlock employs atomic compare and swap (CAS) or test-and-set like instructions to implement lock free, wait free thread safe idiom. Such structures scale well in multi-core machines.

answered 2009-12-24T08:43:18.717

Your Answer