flâneur

A Concurrency Cost Hierarchy | Performance Matters

travisdowns.github.io · 10,026 words · saved by 1 readers

Concurrent operations can be grouped relatively neatly into categories based on their cost

Introduction Concurrency is hard to get correct, at least for those of us unlucky enough to be writing in languages which expose directly the guts of concurrent hardware: threads and shared memory. Getting concurrency correct and fast is hard, too. Your knowledge about single-threaded optimization often won’t help you: at a micro (instruction) level we can’t simply apply the usual rules of μops, dependency chains, throughput limits, and so on. The rules are different. If that first paragraph got your hopes up, this second one is here to dash them: I’m not actually going to do a deep dive…

saved by

related reading