Definition
An atomic operation is an indivisible operation that cannot be ineterleaved or split by other operations.
Examples
- On most modern architectures, a
loadorstoreof a 32-bit word from or to memory is an atomic operation. - However, depending on the hardware implementation, a
loadorstoreof a 64-bit word may not be atomic.