Vidyalelo
C++ Programming · Q17

Multi threading in C++

Programming · C++ Programming · question 17

Q17

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

A.
To block the execution of a thread
B.
To signal waiting threads
C.
To acquire and release a mutex automatically
Answer
D.
To synchronize thread execution

Answer: Option C

Solution

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