Question: Q2: Suppose there are two resources available and the initial value of semaphore is set to 3. Consider a situation where P() and V() functions
Q2: Suppose there are two resources available and the initial value of semaphore is set to 3. Consider a situation where P() and V() functions are called as follows.
P() P() V() P() V() P() V() V() P() V() P()P() V() P() V() P() V() P() P() V()
Answer the following:
How many processes are sleeping on p()?
What is the value of semaphore?
How many processes have successfully completed their execution?
How many resources are available?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
