Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!