google / comprehensive-rust

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.
https://google.github.io/comprehensive-rust/
Apache License 2.0
27.93k stars 1.67k forks source link

Async dining philosophers does not avoid deadlock the way the sync exercise does #2371

Closed djmitche closed 2 months ago

djmitche commented 2 months ago

Discussed in https://github.com/google/comprehensive-rust/discussions/2367

Originally posted by **xiaohu-zhang** September 15, 2024 Dining Philosophers execise solution in 67.3 is Livelock.Why not use the same idea of 62.3?
djmitche commented 2 months ago

Dupe of #2368.

xiaohu-zhang commented 1 month ago

no problem.I will pull a pr to fix it.