全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Two generals problem?

Definition 25.3 University Computer Science — Year 3 · 第 25 章 — Distributed Systems: Time, Failures and Remote Calls

In the two generals problem, two generals camp on the hills on either side of a valley and can win only if they attack together. They communicate by messengers who cross the valley and may be captured. General A has a plan to attack at dawn. A protocol tells each general which messengers to send and, from the messengers it has received, whether to attack. It solves the problem if, in every run, both generals take the same decision (agreement), and if they attack in the run where no messenger is captured (the plan is not simply dropped).

在原文中阅读 →