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:

Verified
Correct Answer:
Verified
Q2: Semaphores can be used for each of
Q3: Which of the following statements about critical
Q4: _ occurs when an infinite loop prevents
Q5: A _ is a variable that governs
Q6: The test-and-set instruction _.<br>A) prevents deadlock<br>B) prevents
Q8: _ restricts access to a shared variable
Q9: A thread that uses processor cycles to
Q10: Disabling interrupts _.<br>A) is a viable solution
Q11: Threads that operate independently of one another
Q12: An example of a producer/consumer relationship is