In com.barrybecker4.experiments.restaurant, there is a single chef and single waiter.
It would be much more interesting if we could simulate C chefs, W waiters, F initial amount of food.
Waiters will request and retrieve orders, while chefs will prepare the orders in the Kitchen. We will need a queue to hold the requests and probably a set to hold the completed orders ready for pickup.
Each waiter and chef should operate in their own thread.
In com.barrybecker4.experiments.restaurant, there is a single chef and single waiter.
It would be much more interesting if we could simulate C chefs, W waiters, F initial amount of food.
Waiters will request and retrieve orders, while chefs will prepare the orders in the Kitchen. We will need a queue to hold the requests and probably a set to hold the completed orders ready for pickup.
Each waiter and chef should operate in their own thread.