1,199 views
1 votes
1 votes
If value of counting semaphore value is 7, and then 20 P operations and 'x' V operations are performed. Now value of semaphore is 5.

What is x??

iam getting ans as 18.

please correct me if Iam wrong.

1 Answer

Related questions

3 votes
3 votes
3 answers
3
GateAspirant999 asked Feb 14, 2017
2,444 views
Below are four concurrent processes and three counting semaphores.What must be the initial values of the three semaphores, so that output “TGE” is obtained?
1 votes
1 votes
2 answers
4
dirac asked Nov 13, 2015
1,528 views
A binary semaphore ensures mutual exclusion. Does a counting semaphore ensure mutual exclusion too?Please justify your answers.