ExamVeda
Login
Home
21
What is the purpose of the 'std::future' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
22
What is the difference between std::async and std::thread in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
23
What is the purpose of the 'std::promise' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
24
What is the difference between std::condition_variable and std::condition_variable_any in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
25
What is the purpose of the 'std::thread::hardware_concurrency()' function in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
26
What is the purpose of the 'std::recursive_mutex' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
27
What is the purpose of the 'std::atomic_flag' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
28
What is the purpose of the 'std::latch' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
29
What is the purpose of the 'std::barrier' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
30
What is the purpose of the 'std::semaphore' class in C++ multi-threading?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board