From 6df4ba24dd8d3d912b6c120c4222ca84411b64da Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Mon, 3 Jul 2023 23:41:54 -0700 Subject: [PATCH] Clarify that each philosopher should think/eat 100 times (#900) Clarify that each philosopher should think/eat 100 times. Folks who have hazy memories of the philosopher dining problem may interpret the original instructions as "make each philosopher think and eat once". This interpretation loses a critical detail, because the resulting code is highly unlikely to deadlock in practice, even without breaking the symmetry. --- src/exercises/concurrency/dining-philosophers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exercises/concurrency/dining-philosophers.md b/src/exercises/concurrency/dining-philosophers.md index 9b864b5a..98327ae7 100644 --- a/src/exercises/concurrency/dining-philosophers.md +++ b/src/exercises/concurrency/dining-philosophers.md @@ -32,7 +32,7 @@ blanks, and test that `cargo run` does not deadlock: // Create philosophers - // Make them think and eat + // Make each of them think and eat 100 times // Output their thoughts }