3 ms·
I really like this article, because it's a great description of the level of hardware knowledge you must be programming with in order to successfully elide atom
by pcwalton 11y ago
I really like this article, because it's a great description of the level of hardware knowledge you must be programming with in order to successfully elide atomics on the fast path for concurrent programming on multicore.
If you aren't familiar with your CPU architecture on the microcode level, don't risk it. Your naive double-checked locking code is almost certainly broken. Just use atomics on the fast path.
- CyberDildonics 11y ago> Your naive double-checked locking code is almost certainly broken Is there anywhere I can read a little more about this?