Answer by rustyx for synchronization primitives: Equal latencies between...
In an uncontended state an SRWLock is just an atomic int. So it's unsurprising that it performs the same as an atomic.You should see very different timings once you introduce some contention in your...
View Articlesynchronization primitives: Equal latencies between atomics and mutex lock
I'm trying to improve my understanding of synchronization primitives in C++. I've measured latencies of various concurrent operations, such as:For a raw std::mutex, the time between .unlock() and the...
View Article
More Pages to Explore .....