Skip to content
0:00 / 0:00

#concurrency#cachelines#locks

The Cost of Concurrency Coordination with Jon Gjengset

Jane Street

102K subscribers • 18 videos on Hallway

YouTube
  • Recommended by 1 person: 1 on Lobsters.
  • Presented by Jon Gjengset

Advanced. Deep dive for people who know the field.

163K views7 months ago1 recommendation

Systems programmingComputer scienceConcurrency and parallelismPerformance and optimizationCPUs and computer architecture

Jon Gjengset explores the hardware-level costs of multi-threaded coordination, from CPU cache lines to Amdahl's law.

In this talk, Jon Gjengset explores the true cost of concurrency coordination – from Amdahl's law down to CPU cache lines – and what we can do about it. Modern hardware is moving to more cores rather than faster ones. For application developers, this means that further performance gains require _parallelism_; making progress on many tasks at the same time. But as anyone with experience writing multi-threaded code will tell you, this is easier said than done — those threads inevitably have to coordinate, and coordination is "expensive." But _why_ is it expensive? Sure, a mutual exclusion lock forces sequential execution, which limits overall speedup (per Amdahl's law). But is the lock itself expensive? Do reader-writer locks help when the coordination is mostly required for reads? In this talk, we'll dive deep into what makes concurrency coordination costly, and explore some pathways to mitigate that cost. By the end, you'll leave with a mental model that goes all the way down to the CPU cache line, and a newfound appreciation for a protocol from the 1980s. Chapters Talk begins Audience Q&A

Why it's here

1 person recommends this

What people say. Recommended as an excellent, deep-dive explanation of how hardware constraints impact concurrent software performance.

ysunon Lobsters • Recommends

The Cost of Concurrency Coordination