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: Option D

Join The Discussion