The Sleeping Teaching Assistant


A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments during regular office hours. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help during office hours, the TA sits at the desk and takes a nap. If a student arrives during office hours and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time.


1. Write program in C language using Pthreads, mutex locks and semaphores for THIS ‘SLEEPING TEACHING ASSISTANT’ Problem.

2. Based on your code just answer these simple questions:

i. How many threads/processes are there?

ii. What does each thread simulate?

iii. Will each thread be blocked at some time of simulation? If yes, explain the circumstances.

iv. When will a blocked thread be waked up, and by whom?

v. How many semaphores are there in your project, what is the purpose for having each?

3. Display messages to the screen to show the state of the system. A good way to validate your program running correctly is to perform some simple output messages to show the state of the system. You can experiment with these messages, but in general you want to demonstrate what each thread is doing. You can use an integer number to identify each thread.

4. If your program needs any arguments in command line, you need prompt proper message for the arguments and validate the input.

5. You may consider how to terminate your program. There are many options. For example, terminate after a given number of students obtaining help OR terminate after each student has taken help from the TA twice. You can choose any other reason to terminate your program. Just need to explain this in output messages.

NOTE: Please also attach a text file explaining how to compile and run this program.


And this is an urgent project. The deadline is next 24 hrs and budget is $30

Taidot: C-ohjelmointi, C++ -ohjelmointi, Linux, UNIX

Näytä lisää: the sleeping barber, whats the role of assistant outsourcing personell in zte uganda, the cheapest virtual assistant, sleeping barber problem, sleeping ta problem github, programming project the sleeping teaching assistant, the sleeping teaching assistant solution, sleeping tablets, sleeping teaching assistant problem github, sleeping teaching assistant problem in c, sleeping ta github, the best virtual assistant for android, minimu wages to the first division assistant of outsource employees, how to find the best virtual assistant, how the stages of child development in art and desing would help in the effective teaching of the special need child pdf, find the best executive assistant in dubai, how to be the best administrative assistant, which is the best virtual assistant, where to find the best personal assistant, virtual assistant the series 4th edition

Tietoa työnantajasta:
( 0 arvostelua ) United States

Projektin tunnus: #16721331

Myönnetty käyttäjälle:


Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested.

$30 USD 1 päivässä
(689 Arvostelua)

3 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


keen to do it, please discuss, negotiable price and duration

$111 USD 4 päivässä
(14 arvostelua)

Hi, I am a multimedia expert with Audio Video encoding/decoding experience in Linux/Android Domain. Delivered several projects on RPI, You can see my history. Actually working on a project right now which uses libcu Lisää

$250 USD 2 päivässä
(11 arvostelua)