全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Deadlock?

Definition 31.7 High School Computer Science · 第 31 章 — Processes and Scheduling

A deadlock is a state in which each process of a group waits for a resource held by another process of the group, so that none of them can ever go on.

The resource-allocation graph of the deadlock. Processes are circles, locks squares; an arrow from a lock to a process means “held by”, from a process to a lock “waits for”. The four arrows form a cycle. Leaving out the locks gives the wait-for graph of the output: P waits for Q, Q waits for P.
The resource-allocation graph of the deadlock. Processes are circles, locks squares; an arrow from a lock to a process means “held by”, from a process to a lock “waits for”. The four arrows form a cycle. Leaving out the locks gives the wait-for graph of the output: P waits for Q, Q waits for P.
在原文中阅读 →