Computer Science, asked by shain15, 7 months ago

3. Write a C program to implement the semaphore solution for the given problem. (12.5 marks)
Your Professor is very popular during office hours, but sadly has a tiny office. Empirical studies
have shown that in that office, there is room for about 3 students to chat comfortably. Those 3
students have various questions for the professor, which take various amounts of time. The
professor has one whiteboard on which to demonstrate solutions to the student(s), and can write
up the answer to one question at a time. Once a student's question(s) are satisfied (the student
can randomly decide to ask more than one question while he/she has the prof's attention), the
student leaves. During this time, more students may randomly come and go, or decide that the
room is too crowded and not wait. When there are no students, the professor tends to other
responsibilities until a student arrives and awakens" him.​

Answers

Answered by jasmansinghgoraya672
0

Answer:

isiotiriisdiiriwieer

Explanation:

ortot9so

g

g

oaooa0a0s0t

fadlzpps

ystopgap

a

s

sf

lsoppspflg

Similar questions