4 ms·
I think one of the questions at the end covers this. The speaker admits the lock choice is a gimmick and reiterates that the time sink is related to thrashing o
by dcow 9y ago
I think one of the questions at the end covers this. The speaker admits the lock choice is a gimmick and reiterates that the time sink is related to thrashing on the cache line.
- glandium 9y agoI 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.