Multiple Choice
Which of the following statements about semaphores is true?
A) P and V operations should be indivisible operations.
B) If several threads attempt a P( S ) operation simultaneously, only one thread should be allowed to proceed.
C) A semaphore implementation should guarantee that threads do not suffer indefinite postponement.
D) all of the above
Correct Answer:

Verified
Correct Answer:
Verified
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
Q14: What happens when a thread calls P(
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