adplus-dvertising
frame-decoration

Question

At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore.The resulting value of the semaphore is :

a.

42

b.

2

c.

7

d.

12

Answer: (b).2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore.The resulting value of the...

Similar Questions

Discover Related MCQs

Q. A binary semaphore is a semaphore with integer values :

Q. Semaphores are mostly used to implement :

Q. Spinlocks are intended to provide __________ only.

Q. The bounded buffer problem is also known as :

Q. In the bounded buffer problem, there are the empty and full semaphores that :

Q. In the bounded buffer problem :

Q. To ensure difficulties do not arise in the readers – writers problem, _______ are given exclusive access to the shared object.

Q. The dining – philosophers problem will occur in case of :

Q. A deadlock free solution to the dining philosophers problem :

Q. A monitor is a type of :

Q. A monitor is characterized by :

Q. A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.

Q. The monitor construct ensures that :

Q. The operations that can be invoked on a condition variable are :

Q. The process invoking the wait operation is :

Q. If no process is suspended, the signal operation :

Q. A collection of instructions that performs a single logical function is called :

Q. A terminated transaction that has completed its execution successfully is ____________ otherwise it is __________

Q. The state of the data accessed by an aborted transaction must be restored to what it was just before the transaction started executing. This restoration is known as ________ of transaction.

Q. Write ahead logging is a way :