Home / MCQ Bank / Computer
Computer Multi Threading In C Plus Plus

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

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • To make the current thread sleep for a specified duration

Related Computer Questions

What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input) #include <stdio.h> void main() { int ch; printf("enter a value between 1 to 2:"); scanf("%d", &ch); switch (ch, ch + 1) { case 1: printf("1\n"); break; case 2: printf("2"); break; } } What is a circular linked list? Which string matching algorithm is typically used in text editors for search functionality? What event is raised when the user releases a mouse button that was pressed while the mouse was over a control in a Windows Forms Application? Which command is used to skip the rest of a loop and carry on from the top of the loop again?