Home / MCQ Bank / Computer
Computer Multi Threading In C Plus Plus

What is the primary difference between a std::mutex and a std::spinlock in C++ multi-threading?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • std::mutex is a blocking synchronization primitive, while std::spinlock is a non-blocking synchronization primitive

Related Computer Questions

If you wanted to deny all Telnet connections to only network 192.168.10.0, which command could you use? What is the name given to the exchange of control signals which is necessary for establishing a connection between a modem and a computer at one end of a line and another modem and computer at the other end? ([w-]+) will match ___________ The _____ houses the switches in token ring. What does the 'abs' function in C do?