Operating System Questions
1.There is a ticket hall can accommodate 100 people. If it is less than 100 people in the hall, buyers can go into and buy tickets ,then leave the hall. If there have 100 people, then buyers should wait outside the hall. Now please answer the following questions:
(1)Is it synchronization or mutual exclusion between the buyers?
(2)Describe the process of buyers with wait() and signal() operation.
Comments
Leave a comment