Q40
What is the primary difference between a std::mutex and a std::spinlock in C++ multi-threading?
A.
std::spinlock is a blocking synchronization primitive, while std::mutex is a non-blocking synchronization primitive
B.
They both provide the same functionality
C.
std::mutex is a blocking synchronization primitive, while std::spinlock is a non-blocking synchronization primitive
AnswerD.
std::spinlock is more efficient than std::mutex
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board