<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>STM on PlumePHP</title><link>https://plumephp.com/tags/stm/</link><description>Recent content in STM on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Wed, 22 Oct 2025 10:06:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/stm/index.xml" rel="self" type="application/rss+xml"/><item><title>Clojure 并发设计模式：STM、core.async 与 Agent 实战</title><link>https://plumephp.com/clojure-concurrency-patterns/</link><pubDate>Wed, 22 Oct 2025 10:06:00 +0800</pubDate><guid>https://plumephp.com/clojure-concurrency-patterns/</guid><description>&lt;p&gt;Clojure 的并发设计哲学是「分离身份（Identity）与状态（State）」，通过不可变数据结构和专用并发原语，让多线程编程回归简单。与 Java 的锁（synchronized/ReentrantLock）和 Erlang 的 Actor 消息传递不同，Clojure 提供了三种互补的并发模型——&lt;strong&gt;STM（软件事务内存）、Agent 和 core.async（CSP 通道）&lt;/strong&gt;，满足从协调式状态修改到流式异步管道的各类场景。&lt;/p&gt;</description></item></channel></rss>