This is a program that aims to solve the Philosophers dining problem with som Rust code.
Here is the problem explained from wikipedia
think until the left fork is available; when it is, pick it up;
think until the right fork is available; when it is, pick it up;
when both forks are held, eat for a fixed amount of time;
then, put the right fork down;
then, put the left fork down;
repeat from the beginning.
Should be as simple as executing cargo run
assuming you have rust toolchain installed.
Using rust version rustc 1.43.1 (8d69840ab 2020-05-04)