2 ms·
Do you need more than atomics to build locking primitives?
by ndesaulniers 11y ago
Do you need more than atomics to build locking primitives?
- CyberDildonics 11y agoYes and no. You can build concurrency with just atomics and it will work. If you design the architecture of your program well it can be incredibly fast. Atomics on Intel processors at least are amazingly fast. Mutexes though have a special property in that when a thread waits for a mutex to be unlocked, the processor can idle (this is all Intel knowledge).