Skip to content

Laskos-p/cigarette_smokers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cigarette smokers problem in Rust

Solution to cigarette smokers problem in Rust using Mutexes and message passing using channels.

This cigarette smokers problem has extra constraints:

  • agent sets the prices of ingredients
  • every smoker have one ingredient which he sells to other smokers
  • smoker must buy two ingredients at once
  • smokers have some money to begin with
  • if smoker has no money to buy ingredients he must wait for price change or money from sold ingredients
  • smokers use message passing to transfer money for ingredients

You can run this project using

cargo run

About

Cigarette smokers problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages