Skip to content

3v0k4/cake-machine-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ed14d89 · Feb 21, 2024

History

1 Commit
Feb 21, 2024
Feb 21, 2024
Feb 21, 2024

Repository files navigation

Cake Machine Kata (concurrent/parallel programming)

Write a console program to simulate a cake manufacturing factory.

Make as many cakes as possible. But don't worry about the ingredients, they are infinite.

A cake is ready after 3 stages:

  1. Preparation: random duration between 5 and 8 seconds
  2. Cooking: 10 seconds
  3. Packaging: 2 seconds

Each stage has a different amount of workers:

  • Preparation: 3 cakes at the same time
  • Cooking: 5 cakes at the same time
  • Packing: 2 cakes at the same time

Every minute, a report displays the number of cakes completed and the number of cakes at each stage of preparation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages