3 ms·
> almost no application benefits noticably(!) from the speed up A lot of applications could benefit from a significant speed up. But atomic operations cannot h
by zzzcpan 10y ago
> almost no application benefits noticably(!) from the speed up
A lot of applications could benefit from a significant speed up. But atomic operations cannot help with that, they are too slow, they still have to do all that nasty synchronization underneath.
- bluejekyll 10y agoAtomic operations on NUMA architectures are much more efficient than lock/unlock on the same memory. It's more expensive than no synchronization, but it's the cheapest (that I know of) method of syncing state across threads and multiple CPU architectures. The only thing cheaper is immutable structures, but those obviously limit your ability to change state across threads.
- loeg 10y agoYou can do some checks as non-atomic instructions too, with careful use of memory barriers.