Vidyalelo
C++ Programming · Q18

Multi threading in C++

Programming · C++ Programming · question 18

Q18

What is the purpose of the 'std::unique_lock' class in C++ multi-threading?

A.
To manage thread priorities
B.
To provide more flexibility than std::lock_guard
Answer
C.
To handle exceptions in threads
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board