A friend of mine left her position teaching physics at FCCollege and took a job at PGCs. She was working in a cubicle in thebasement of a huge building, and the nearest women's prayer roomwas two floors up. She proposed to her boss that women be allowedto pray in the men's pray room.
The boss agreed, provided that the following synchronizationconstraints can be maintained:
• There cannot be men and women in the prayer room at the sametime.
• There should never be more than three employees in the prayerroom
You are supposed to write a synchronization solution for thisproblem and implement it in C language.
A friend of mine left her position teaching physics at FC College and took a job at PGCs. She was working in a cubicle i
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am