# 死锁（消歧义）

**死锁**最常指僵局，即各方因彼此等待而都无法取得进展的局面。该词用于日常谈判与政治，在法律上指悬而未决的陪审团，而在计算机科学中则具有精确的技术含义，指进程因持有对方所需的资源而相互阻塞。它也是多部作品与电子游戏的名称，其中包括 Valve 出品的一款英雄射击游戏。

| 义项 | 领域 | 含义 |
|---|---|---|
| 僵局 | 一般用法 | 完全未能达成协议或解决争端；谈判、政治或体育中的停顿状态<sup>[1](https://www.oxfordlearnersdictionaries.com/us/definition/english/deadlock)</sup> |
| 悬而未决的陪审团 | 法律 | 陪审团无法就裁决达成一致的状态<sup>[2](https://dictionary.findlaw.com/definition/deadlock.html)</sup> |
| 进程死锁 | 计算机科学 | 一组进程全部被阻塞，因为每个进程都持有某项资源，并等待该组中另一进程所持有的资源<sup>[3](https://bitsnotes.com/view/operating-systems/deadlocks-prevention-avoidance-detection-and-recovery)</sup> |
| 科夫曼条件 | 计算机科学 | 死锁的四个必要条件：互斥、占有并等待、不可剥夺、循环等待<sup>[3](https://bitsnotes.com/view/operating-systems/deadlocks-prevention-avoidance-detection-and-recovery)</sup> |
| 《死锁》（Valve） | 电子游戏 | 由 Valve 开发并发行的一款多人 6 对 6 英雄射击与 MOBA 游戏<sup>[4](https://deadlock.coach/en/the-game)</sup> |
| 《死锁：行星征服》 | 电子游戏 | 20 世纪 90 年代的策略游戏系列；《死锁：行星征服》与《死锁 II：神殿战争》在 Steam 上列出的发行日期均为 2014 年 10 月 23 日<sup>[5](https://store.steampowered.com/search/?term=Deadlock)</sup> |
| 《太空堡垒卡拉狄加：死锁》 | 电子游戏 | 由 Black Lab Games 制作的一款星际战术游戏，截至 2025 年 11 月 15 日已从 Steam 及所有其他平台下架<sup>[6](https://www.pcgamer.com/games/strategy/battlestar-galactica-deadlock-one-of-the-pcs-best-spaceship-strategy-games-will-no-longer-be-available-for-purchase-on-any-platform-as-of-next-week/)</sup> |

## 一般用法与法律用法

在普通英语中，死锁指完全未能达成协议或解决争端，与僵局同义<sup>[1](https://www.oxfordlearnersdictionaries.com/us/definition/english/deadlock)</sup>。该词见于政治报道、劳资谈判与体育；一篇足球比赛报道可将零比零的平局描述为僵局，并称其终于在第三十二分钟被打破<sup>[7](https://en.wiktionary.org/wiki/deadlock)</sup>。在美国法律用法中，死锁有特定含义：陪审团无法就裁决达成一致的状态<sup>[2](https://dictionary.findlaw.com/definition/deadlock.html)</sup>。经过评议而未能作出一致裁决的陪审团，即被称为陷入僵局，检察官随后可选择就此案再次提起公诉<sup>[8](https://dictionary.justia.com/deadlock)</sup>。

## 计算

在计算机科学中，死锁描述一组全部卡住的进程：每个成员都持有某项资源，同时等待该组另一成员所持有的资源，而由于没有任何一方会放弃他人正在等待的东西，任何一方都无法继续推进<sup>[3](https://bitsnotes.com/view/operating-systems/deadlocks-prevention-avoidance-detection-and-recovery)</sup>。形式上，当一组进程中的每个成员都被阻塞，等待一个只有同组另一成员才能触发的事件——最常见的是释放后者当前持有的资源——该组进程即处于死锁状态。<sup>[3](https://bitsnotes.com/view/operating-systems/deadlocks-prevention-avoidance-detection-and-recovery)</sup>

四个必要条件被称为科夫曼条件，即互斥、占有并等待、不可剥夺与循环等待<sup>[3](https://bitsnotes.com/view/operating-systems/deadlocks-prevention-avoidance-detection-and-recovery)</sup>。其名称来自小爱德华·G·科夫曼（Edward G. Coffman Jr.）、M·J·埃尔菲克（M. J. Elphick）与阿里耶·肖沙尼（Arie Shoshani）1971 年发表于《ACM 计算综述》（*ACM Computing Surveys*）3(2): 67–78 的综述《系统死锁》（"System Deadlocks"）<sup>[9](https://dblp.org/rec/journals/csur/CoffmanES71)</sup>。

操作系统处理死锁的方式大致有三类：预防或避免，即不让系统进入死锁状态；检测与恢复，即在发现死锁时中止某个进程或剥夺资源；以及忽略问题，Windows 与 UNIX 均采取这一做法，其理由是：若死锁很少发生，重启的代价低于为预防或检测而持续付出的开销<sup>[10](https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/7_Deadlocks.html)</sup>。

该术语也出现在编程接口层面。POSIX 规定，当检测到死锁情形时，`pthread_mutex_lock` 可能失败并返回错误码 `EDEADLK`<sup>[11](https://man7.org/linux/man-pages/man3/pthread_mutex_lock.3p.html)</sup>；[Linux 内核](https://www.edgepedia.org/zh/linux-kernel)的 lockdep 校验器则通过检查其锁依赖图中的闭合强路径来检测潜在死锁<sup>[12](https://cdn.kernel.org/doc/html/latest/locking/lockdep-design.html)</sup>。

## 游戏及其他作品

**《死锁》（Valve 游戏）。**《死锁》是由 Valve 开发并发行的一款多人 6 对 6 英雄射击与 MOBA（多人在线战术竞技）游戏<sup>[4](https://deadlock.coach/en/the-game)</sup>。

**其他电子游戏。** Steam 目录中列有多款同名作品，包括《DEADLOCK》（VR，2016 年 8 月 15 日）、《DeadLock》（2021 年 8 月 23 日）、《Deadlock Station》（2026 年 8 月 19 日），以及策略游戏双作《死锁：行星征服》与《死锁 II：神殿战争》<sup>[5](https://store.steampowered.com/search/?term=Deadlock)</sup>。由 Black Lab Games 制作、Slitherine 发行的太空战术游戏《太空堡垒卡拉狄加：死锁》，截至 2025 年 11 月 15 日已在所有平台停止销售，发行方未给出理由<sup>[6](https://www.pcgamer.com/games/strategy/battlestar-galactica-deadlock-one-of-the-pcs-best-spaceship-strategy-games-will-no-longer-be-available-for-purchase-on-any-platform-as-of-next-week/)</sup>。

**文学。**《死锁》也是一部已出版小说的书名；有一份教学资源配套该同名惊悚小说，书中一名叫邦尼（Bunny）的少年与主人公一同卷入一场危险的游戏<sup>[13](https://fcbg.org.uk/wp-content/uploads/2024/03/Deadlock.pdf)</sup>。

## 相关术语

在并发领域，[死锁](https://www.edgepedia.org/zh/deadlock-video-game)与两种相邻的故障模式相区别：活锁与饥饿——在后两者中，线程仍在继续运行或被无限期延迟，而非被永久阻塞<sup>[7](https://en.wiktionary.org/wiki/deadlock)</sup>。

## References

1. [deadlock noun, Oxford Advanced Learner's Dictionary](https://www.oxfordlearnersdictionaries.com/us/definition/english/deadlock)
2. [Deadlock, FindLaw Dictionary of Legal Terms (Merriam-Webster's Dictionary of Law)](https://dictionary.findlaw.com/definition/deadlock.html)
3. [Deadlocks: Prevention, Avoidance, Detection, and Recovery, OS Lecture 10 notes, BitsNotes](https://bitsnotes.com/view/operating-systems/deadlocks-prevention-avoidance-detection-and-recovery)
4. [Deadlock from Valve, deadlock.coach](https://deadlock.coach/en/the-game)
5. [Steam Search: Deadlock](https://store.steampowered.com/search/?term=Deadlock)
6. [Battlestar Galactica Deadlock delisting, PC Gamer](https://www.pcgamer.com/games/strategy/battlestar-galactica-deadlock-one-of-the-pcs-best-spaceship-strategy-games-will-no-longer-be-available-for-purchase-on-any-platform-as-of-next-week/)
7. [deadlock, Wiktionary](https://en.wiktionary.org/wiki/deadlock)
8. [deadlock Definition, Justia Legal Dictionary](https://dictionary.justia.com/deadlock)
9. [Edward G. Coffman Jr., M. J. Elphick, Arie Shoshani (1971). System Deadlocks. ACM Comput. Surv. 3(2): 67-78, dblp](https://dblp.org/rec/journals/csur/CoffmanES71)
10. [Operating Systems: Deadlocks, Course Notes, University of Illinois at Chicago](https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/7_Deadlocks.html)
11. [pthread_mutex_lock(3p), Linux manual page](https://man7.org/linux/man-pages/man3/pthread_mutex_lock.3p.html)
12. [Runtime locking correctness validator, The Linux Kernel documentation](https://cdn.kernel.org/doc/html/latest/locking/lockdep-design.html)
13. [Deadlock, teaching resource, Federation of Children's Book Groups](https://fcbg.org.uk/wp-content/uploads/2024/03/Deadlock.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems › Operating system concepts

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/deadlock-disambiguation

English original: https://www.edgepedia.org/deadlock-disambiguation
