2 ms·
> Atomics are very expensive operations. Atomics are very expensive when contended - which is also the case where locks would introduce blocking and reduced pe
by zozbot234 2y ago
> Atomics are very expensive operations.
Atomics are very expensive when contended - which is also the case where locks would introduce blocking and reduced performance. Uncontended atomics are relatively cheap.
- pclmulqdq 2y agoI suggest you run a microbenchmark. Uncontended atomics are some of the most expensive assembly instructions out there. They also acquire global system locks on certain stages of execution.
- janwas 2y agoYep, including draining the store buffer. We've gotten our ThreadPool barrier+wait to use only acq/rel, but not yet the work stealing. Does anyone have experience with that already?