Vidyalelo
C++ Programming · Q26

Multi threading in C++

Programming · C++ Programming · question 26

Q26

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

A.
To provide mutual exclusion
B.
To allow a thread to lock the same mutex multiple times without causing a deadlock
Answer
C.
To manage thread priorities
D.
None of the above

Answer: Option B

Solution

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