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

·Hacker News··

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.

Read full article →

Related Articles

Anthropic S-1
SiNTEx · Hacker News · 16h ago
Solar power is becoming bigger than nuclear
geox · Hacker News · 14h ago
The Exponential Time Hypothesis Is False [pdf]
vok · Hacker News · 7h ago
Oldest GUI application that still runs on Windows 11
enlyth · Hacker News · 11h ago
Type Server Protocol
adamnemecek · Hacker News · 11h ago