An introduction to lockless algorithms
An introduction to lockless algorithms
Posted Feb 21, 2021 12:53 UTC (Sun) by pbonzini (subscriber, #60935)In reply to: An introduction to lockless algorithms by ale2018
Parent article: An introduction to lockless algorithms
Generally it's up to the architecture to define the largest size that can be stored atomically. It's almost always (on a modern 32-bit or 64-bit processor) at least the size of a pointer.
The processor itself will load data from memory in cache lines that will usually be 32, 64 or 128 *bytes* long.
