Solved

Which of the Following Statements Is False

Question 11

Multiple Choice

Which of the following statements is false?


A) The thread launch policy is a value from the launch enum-either launch::async, launch::deferred or both separated by a bitwise OR (|) operator.
B) The thread launch policy value launch::async indicates that a specified function should execute in the current thread.
C) Function async returns an object of class template future that you can use when the thread completes execution to obtain data returned by the function that async executes. The thread launch policy value launch::deferred indicates that a specified function should execute in the same thread when the program uses the future object returned by function template async to get the result.
D) To ensure that a program does not terminate until its threads terminate and to receive the results from each thread, we call each future's get member function. This causes the program to wait until the corresponding threads complete execution-known as joining the threads-before executing the remaining code in main.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents