Illustration of a circular buffer with atomic pointers.

The Mechanics of Thread Safety in Lockless Circular Buffers

A deep dive into lockless circular buffer design, showing how atomic primitives, memory fences, and careful indexing keep multiple producers and consumers safe without locks.

May 15, 2026 · 10 min · 1918 words · martinuke0
Illustration of a binary heap with atomic arrows indicating lock‑free operations.

Implementing Lock-Free Priority Queues Using Compare and Swap

A deep dive into lock‑free priority queues, explaining the compare‑and‑swap technique, data‑structure choices, correctness proofs, and real‑world benchmarks.

May 15, 2026 · 10 min · 2000 words · martinuke0
Illustration of a concurrent queue with colored hazard pointers.

How Lock‑Free Queues Handle Memory Reclamation via Hazard Pointers

A deep dive into hazard pointers for lock‑free queues, showing why they matter, how they work, and when to use them over alternative reclamation schemes.

May 15, 2026 · 8 min · 1699 words · martinuke0
Illustration of a hash map with multiple threads accessing buckets without locks.

Designing Lock-Free Concurrent Hash Maps Without Atomic Contention

A deep dive into lock‑free hash map designs that sidestep atomic contention, covering bucket partitioning, versioned pointers, and practical performance results.

May 15, 2026 · 9 min · 1875 words · martinuke0
Illustration of two threads exchanging data atomically.

Solving Data Races with Lock‑Free Atomic Compare‑and‑Swap

A deep dive into lock‑free programming using atomic compare‑and‑swap, covering theory, implementation patterns, and real‑world best practices.

May 14, 2026 · 8 min · 1669 words · martinuke0
Feedback