Vidyalelo
C++ Programming · Q23

Multi threading in C++

Programming · C++ Programming · question 23

Q23

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

A.
To signal waiting threads
B.
To manage thread priorities
C.
To acquire and release a mutex automatically
D.
To store a value or an exception that will be made available asynchronously
Answer

Answer: Option D

Solution

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