http://med.ngntfwmwovvku6eqi7dzzgzv2wzlvq2cqtqha7ccgzub2xnivsuxnuyd.onion/@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c
Examples of things that are atomic are database transactions ( but not always as you expect ), the mv command found on most unix-like systems, breaking a glass window (it’s either broken or not, never something in-between), etc… Several of the most popular CPU architectures have instructions that let you atomically set memory to a new value conditionally if you know the current value. This is called “test and set” (TAS), “compare and swap”, or “compare and set” (CAS). The hardware makes...
2 similar results skipped