Vidyalelo
C++ Programming · Q15

Multi threading in C++

Programming · C++ Programming · question 15

Q15

What is the purpose of the 'std::async' function in C++ multi-threading?

A.
To manage thread priorities
B.
To synchronize access to shared resources
C.
To join two threads asynchronously
D.
To create a new thread and execute a function asynchronously
Answer

Answer: Option D

Solution

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