<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>并发编程 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B/</link><description>Recent content in 并发编程 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 23 Sep 2026 09:12:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B/index.xml" rel="self" type="application/rss+xml"/><item><title>深入理解线程安全：底层机理、典型陷阱与实现方案</title><link>https://leafcxy.github.io/posts/2026/09/understanding-thread-safety-principles-and-practices/</link><pubDate>Wed, 23 Sep 2026 09:12:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/09/understanding-thread-safety-principles-and-practices/</guid><description>&lt;p&gt;在多核 CPU 普及与高并发系统盛行的今天，并发编程已成为现代软件工程师不可回避的基石。然而，多线程在极大提升硬件资源利用率与吞吐量的同时，也带来了计算机体系中最复杂的幽灵——&lt;strong&gt;线程安全问题（Thread Safety）&lt;/strong&gt;。&lt;/p&gt;
&lt;p&gt;竞态条件（Race Condition）、脏读脏写、死锁、可见性丢失、指令重排……这些在单线程世界中闻所未闻的现象，往往在生产环境中以偶发、难以复现的诡异 Bug 出现。&lt;/p&gt;</description></item></channel></rss>