The code has been written in visual IDE. To run the file in visual studio, open sleeping barber problem.sln. Once open, bulid it and run it. To run in any other environments, use Sleeping Barber Problem.cpp which contains the entire code for the question. If there is any problem in running the code, contact vkhande@stevens.edu. Thank you and i hope i have followed all the instructions given in the question