We have developed a code to handle the production and distribution of a product. In this project, we have applied it to manage a hotel.
The chef, waiter, and customer are modelled using thread. A customer will give an order to the waiter. The waiter will wake only when a customer arrives. Once the order is placed, the waiter will get pizza from the rack. If the pizza is not available, the waiter will wait. The chef will add pizza to the tray. The chef will remain if the tray is full.
To view project :
1. Download hotel_management folder.
2. Go to hotel_management/src and run "myscript", We have made this shell script so that you don't have to worry about how to run this code. Just run the .sh file and it's done : )
Guide : Prof. Amit Mankodi
Team size : 5
Concepts used in this project :
Concurrent Programming: Semaphore, Threading
Process management: creating a child process and using it to execute another code
File I/O
IPC - Signals
Shell script
Makefile