Building a Fast Lock-Free Queue in Modern C++ From Scratch

2 months ago by lysdexic to c/cpp

Why do standard mutex-based queues feel very slow under extreme contention? Lets take a deep dive into the chaotic world of lock-free programming, Hazard Pointers, cache-line optimizations, and C++20 concepts to build a Multi-Producer Multi-Consumer queue that scales to dozens of threads without choking on the OS scheduler.
cpp
cpp

@programming.dev

login for more options
2380
415
47

The center for all discussion and news regarding C++.

Rules

  • Respect instance rules.
  • Don't be a jerk.
  • Please keep all posts related to C++.

go to feed...