Write a C program using semaphores or mutex locks for the following scenario:
A university computer science department has a teaching assistant (TA) that holds office hours where they provide help to undergraduate students with their programming assignments. The TA's office is rather small and only has room for one desk with a chair and a computer. There are three chairs outside the office where students may sit and wait if the TA is currently helping another student. If there are no available chairs in the waiting area, the student shows up at a later time. When the TA has finished helping a student, she goes outside to the waiting area to see if there are students waiting. If so, she takes the next student and begins to help them. If there are no waiting students, she returns to her chair in her office and takes a nap. If a student shows up and sees the TA sleeping, they sit in her chair and wake her up.
14 freelancers are bidding on average $64 for this job
I'm very interesting in your project. I have 8+ years of c/c++ programming experience. If you give me the task I can offer you the best solution. Thanks, regards.
Hi, how are [url removed, login to view] to meet you. I have long experience with C programming. I am sure you are fully satisfied with me in this project. I hope your response.