Vidyalelo
C++ Programming · Q20

Multi threading in C++

Programming · C++ Programming · question 20

Q20

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

A.
To execute a task asynchronously
B.
To provide mutual exclusion
C.
To manage thread priorities
D.
To package a task and its associated state
Answer

Answer: Option D

Solution

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