Multiple Choice
Disabling interrupts ________.
A) is a viable solution for mutual exclusion in a multiprocessor system
B) on a uniprocessor system could result in an infinite loop causing the system to hang
C) typically prevents a thread from being preempted while accessing shared data
D) both b and c
Correct Answer:

Verified
Correct Answer:
Verified
Q5: A _ is a variable that governs
Q6: The test-and-set instruction _.<br>A) prevents deadlock<br>B) prevents
Q7: If a thread attempts a P operation
Q8: _ restricts access to a shared variable
Q9: A thread that uses processor cycles to
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
Q14: What happens when a thread calls P(
Q15: Lamport's Bakery Algorithm does not require _.<br>A)