Skip to content

samuel-lindgren/philosophers-dining-problem-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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.

How to run

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)

About

Philosophers dining problem solved in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages