Skip to content

Realize a simulation of a pizzeria, which is composed of the reception that accepts new commands, of several kitchens, themselves with several cooks, themselves cooking several pizzas.

kounen/PizzaParty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PizzaParty

alt text

Realize a simulation of a pizzeria, which is composed of the reception that accepts new commands, of several kitchens, themselves with several cooks, themselves cooking several pizzas. The following tools were used :

  • Processes (man fork, man exit, man wait...).
  • Inter-process communication (IPC).
  • STL threads.
  • POSIX mutex.

Usage

./plazza 2 5 2000

Description

- The first parameter is a multiplier for the cooking time of the pizzas. Moreover this parameter accepts numbers with value in between 0 to 1 to obtain adivisor of the pizzas cooking time.
- The second parameter is the number of cooks per kitchen.
- The third parameter is the time in milliseconds, used by the kitchen stock to replace ingredients.

Option

"-h" to display the help page.

Authors

About

Realize a simulation of a pizzeria, which is composed of the reception that accepts new commands, of several kitchens, themselves with several cooks, themselves cooking several pizzas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published