Multiple Choice
What happens when a thread calls P( S ) when it wants to enter its critical section, where S is a binary semaphore set to 1?
A) The thread is allowed to enter its critical section and S is decremented.
B) The thread is blocked and added to a queue of waiting threads.
C) The semaphore is set to 2.
D) none of the above
Correct Answer:

Verified
Correct Answer:
Verified
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
Q13: Which of the following statements about semaphores
Q15: Lamport's Bakery Algorithm does not require _.<br>A)
Q16: Which of the following mutual exclusion algorithms
Q17: Semaphore operations can be implemented in the
Q18: In Java, the sleep method call must
Q19: In Java, Object method notify transitions a