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.
So instead of just accessing memory, you have the cost of cross-cache coherency operations between CPU cores.
No comments yet.