This question is on Process Synchronization in Operating Systems. You need to read the following scenario and find out which Process Synchronization method it resembles with. There are 3 washrooms for men and one for women. Only one person can enter a restroom at a time. When a person leaves the washroom, another person is allowed to enter the washroom. When they are not using the washroom, they are not doing anything. Men are not allowed to use the female washroom. So on a fine rainy day, 9 men arrived and 3 men were allowed to enter the 3 washrooms at a time. They were not allowed to use the female washroom even though it was vacant. What Process Synchronization method has been used here? A) Producer-Consumer B) Readers-Writers C) Dining Philosophers
This question is on Process Synchronization in
There are 3 washrooms for men and one for women. Only one person can enter a restroom at a time. When a person leaves the washroom, another person is allowed to enter the washroom. When they are not using the washroom, they are not doing anything. Men are not allowed to use the female washroom. So on a fine rainy day, 9 men arrived and 3 men were allowed to enter the 3 washrooms at a time. They were not allowed to use the female washroom even though it was vacant. What Process Synchronization method has been used here?
A) Producer-Consumer
B) Readers-Writers
C) Dining Philosophers
Step by step
Solved in 3 steps