Cache line padding
Inserting unused memory between variables to place them on separate cache lines, avoiding false sharing.
A cache line is typically 64 bytes. If two variables used by different CPUs land on the same line, writes from one CPU invalidate the other's cache copy—even if the variables hold unrelated data. This is false sharing. Cache line padding wastes memory but ensures each variable has its own line and its own CPU's cache. The tradeoff: slightly worse spatial locality and cache efficiency overall, but massive improvement when false sharing would occur. C++ and Rust standardized attributes for this; Java programmers sometimes use `long` padding fields.