---
title: "#lock-free articles | Hashnode"
description: "Explore 5 articles tagged #lock-free on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/lock-free"
---

Tag

# #lock-free

5 posts · 1 followers

[RuiXin Lin](https://hashnode.com/@BerryLin) · [Mar 24, 2025](https://hashnode.com/posts/c/67e15c56bc4a4f3b9fe0ba29)

### [对c++ 并发编程实战-无锁队列的总结](https://berrylin.hashnode.dev/c?utm_source=hashnode&utm_medium=feed)

引言 最近在看 C++ 并发编程实战（第2版）这本书。第七章的内容中给出了无锁栈及无锁队列的实现，一番阅读下来发现不少问题。 官方翻译版存在很多不准确的地方，后来找到了英文原版+ChatGPT翻译，好了很多 原书中存在一些错误以及疏忽的问题 一些概念晦涩难以理解 故借此机会记录一下自己的理解，也欢迎讨论及补充 单生产者单消费者（SPSC）无锁队列 现从一个简单的 SPSC 队列开始，首先我们需要一个结构体 node 作为链表的节点 template <typename T> struc...

8 min read · [berrylin.hashnode.dev](https://berrylin.hashnode.dev/c?utm_source=hashnode&utm_medium=feed)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Oct 2, 2023](https://hashnode.com/posts/c-lock-free-queue-part-i/651a5d9dff262cdd7943dd43)

### [C++ Lock-Free Queue - Part I](https://radiantsoftware.hashnode.dev/c-lock-free-queue-part-i?utm_source=hashnode&utm_medium=feed)

The queue is one of the fundamental data structures of multithreaded programming. It is often used for message-passing between systems and/or threads, commonly for event handling, task pools, or other types of work queues. In multithreaded environmen...

15 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/c-lock-free-queue-part-i?utm_source=hashnode&utm_medium=feed)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Oct 2, 2023](https://hashnode.com/posts/c-lock-free-queue-part-ii/651a5e0e0b40966cba661f63)

### [C++ Lock-Free Queue - Part II](https://radiantsoftware.hashnode.dev/c-lock-free-queue-part-ii?utm_source=hashnode&utm_medium=feed)

In Part I of this blog series, we discussed how to write a lock-free queue for the case of a single producer thread and a single consumer thread (SPSC). This is handy when sending messages between dedicated threads, but we often want to have multiple...

16 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/c-lock-free-queue-part-ii?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/c-lock-free-queue-part-ii/651a5e0e0b40966cba661f63)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Jun 5, 2023](https://hashnode.com/posts/c-lock-free-object-pool/647d2eb4239ad949a108051c)

### [C++ Lock-Free Object Pool](https://radiantsoftware.hashnode.dev/c-lock-free-object-pool?utm_source=hashnode&utm_medium=feed)

In C++, you often need a container where the objects will remain at a fixed location in memory so that you can easily refer to them individually. For example, our game could contain hundreds of thousands of Entity's and Component's, and our game syst...

14 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/c-lock-free-object-pool?utm_source=hashnode&utm_medium=feed)

[Anton Ryzhov](https://hashnode.com/@antonryzhov) · [Sep 15, 2012](https://hashnode.com/posts/non-blocking-queue/695526539a353e83a37f83d9)

### [Non-blocking Queue](https://blog.antonr.net/non-blocking-queue?utm_source=hashnode&utm_medium=feed)

It is no secret that thread synchronization mechanisms in multithreaded applications consume a lot of resources. In .NET, starting with version 3.5, some synchronization primitives were introduced that take into account the fact that calls to Windows...

5 min read · [blog.antonr.net](https://blog.antonr.net/non-blocking-queue?utm_source=hashnode&utm_medium=feed)
