Lines Matching full:spin
837 going to consider a basic mutual-exclusion primitive called a <em>spin
842 and spin until the lock changes back to zero.</p>
854 <p>The acquisition of the spin lock is written like this (using a C-like
874 <p>On SMP, a spin lock is a useful way to guard a small critical section. If we
880 us). A proper spin lock implementation would optimistically spin a few times
883 uniprocessor you never want to spin at all. For the sake of brevity we?re
904 full version of the simple spin lock is:</p>
925 little while for them to observe it, the other threads will spin a little
939 ?releasing? operations. (It would be wise to install the spin lock example
942 <p>Rewriting the spin lock example with this in mind:</p>
1231 as the spin lock example: it begins with an acquiring CAS, and ends with a