3 ms·
Yes, it is very inefficient, as it is thread-safe and uses atomic operations internally. So instead of just accessing memory, you have the cost of cross-cache
by fh973 1y ago
Yes, it is very inefficient, as it is thread-safe and uses atomic operations internally.
So instead of just accessing memory, you have the cost of cross-cache coherency operations between CPU cores.