3 ms·
I haven't watched the video up to the end, but, how do you think mutexes work under the hood? They use atomic operations. So the cache line thrashing happens in
by glandium 9y ago
I haven't watched the video up to the end, but, how do you think mutexes work under the hood? They use atomic operations. So the cache line thrashing happens in both cases.
Edit: come to think of it, they only use compare-and-exchange, which I guess is lighter on the cache lines.