Question: Program Design (10) There are 50 seats in a library. Everyone who wants to enter the library should first checkin on the registration book. When

Program Design (10) There are 50 seats in a library. Everyone who wants to enter the library should first checkin on the registration book. When he/she leaves the library, he/she should checkout on the registration book. Only one reader can checkin or checkout on the registration book every time. When there is no seat left in the library, the readers will wait outside the library. Write the PV (or wait/signal) semaphore operations for each reader
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
