Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in compare-and-swap

atomic swap with CAS (using gcc sync builtins)

Does atomic_cmpxchg() imply memory barriers?

MySQL Atomic UPDATE in InnoDB vs MyISAM

atomic compare(not equal) and swap

How can compare-and-swap be used for a wait-free mutual exclusion for any shared data structure?

Release-Only form of CAS

Why do both free and member functions exist for compare and swap operations?

Mixing lightweight transactions and normal writes in Cassandra

Why can the MESI protocol not guarantee atomicity of CMPXCHG on x86 without the LOCK prefix?

Is reading a 64-bit atomic value safe on 64-bit platforms if I write/swap using OS atomic functions with barrier?

C++ atomics memory ordering for some specific use case

Can competing atomic operations starve one another?

How does incrementAndGet method of AtomicLong works internally?

Why Double-Checked Locking is used at all?

Compare and Swap on x86 - why is it a full barrier?

Why Atomic versions are missing for some primitive types while being present for some?

Is it guaranteed that compareAndSwap can NOT fail for ALL the participating threads?

Java CAS operation performs faster than C equivalent, why?

java - stealing bits from references

Interlocked.Exchange<T> slower than Interlocked.CompareExchange<T>?