Port of schuchert.wikispaces.com


TddAndConcurrency.Slides.RandomStuff

TddAndConcurrency.Slides.RandomStuff

Up

TDD & Concurrency

Atomic Variables

Modern Processors have a single instruction

IncrementValue() {
   int v;
   do {
      v = get current value
   } while(v != compareAndSwap(v, v+1))
}

Up


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.