Solved

If a Thread Attempts a P Operation When a Counting

Question 7

Multiple Choice

If a thread attempts a P operation when a counting semaphore has been decremented to zero, ________.


A) the thread obtains a resource from the pool and decrements the semaphore to -1
B) the thread obtains a resource from the pool and the semaphore remains equal to 0
C) the thread must wait until a resource is returned to the pool by a V operation
D) the thread returns a resource to the pool and increments the semaphore to 1

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions