Final Programming Fall2014
Final Programming Fall2014
Fall 2014
13% of course grade
You are going to be creating a Cook employee. Waiters will now take an order from Customers.
Waiters will give taken orders to the Cook for cooking. When the food is ready, Cooks will let
Waiters know the food is ready. Waiters do not wait for food to be cooked, they can handle
additional Customers while orders are being cooked. Waiters then “deliver” the completed
food to the Customer. Customers cannot leave before they get their food. Once a Customer
gets their food, they wait the random amount of time (that is already in their code), then they
leave the restaurant. What Waiters currently do after a Customer leaves does not change.
It is important that you follow the steps given below to complete this exam. Each step is worth
points and they are given to you in an order that will make finishing the exam easier for you.
All data sharing is to be thread safe. All thread interactions are to be completely free from race
conditions.