Vidyalelo
C++ Programming · Q39

Multi threading in C++

Programming · C++ Programming · question 39

Q39

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

A.
To block the execution of a thread
B.
To synchronize the execution of threads
C.
To terminate the current thread
D.
To make the current thread sleep for a specified duration
Answer

Answer: Option D

Solution

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