Hotel Simulation using Multithreading and Semaphores in C programming