Quantcast
Channel: synchronization primitives: Equal latencies between atomics and mutex lock - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



synchronization 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
Browsing latest articles
Browse All 2 View Live




Latest Images