Multiple Choice
Which of the following is not true about compare_and_swap instruction?
A) It is a hardware instruction
B) It is executed atomically
C) Returns the original value of passed parameter
D) Set the new value of passed parameter to "TRUE"
E) Set the variable "value" the value of the passed parameter "new_value" but only if "value" =="expected"
Correct Answer:

Verified
Correct Answer:
Verified
Q20: Explain what critical section problem is.
Q21: Which of the following statements is true?<br>A)
Q22: Mutex locks and counting semaphores are essentially
Q23: Assume you had a function named update()
Q24: Which of the following is not true
Q26: Explain what race condition is.
Q27: Semaphores and mutex locks both provide mutual
Q28: Under which of the following contention loads
Q29: Which of the following regarding mutex lock
Q30: Which of the following is NOT true