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
D. std::spinlock is more efficient than std::mutex
Answer: Option C

Join The Discussion