Question 1 of 25
Hints left: 3
Q1
What is the difference between std::condition_variable and std::condition_variable_any in C++ multi-threading?
Q2
What is the purpose of the 'std::condition_variable_any' class in C++ multi-threading?
Q3
Which of the following is not a synchronization mechanism in C++ multi-threading?
Q4
What is the purpose of the 'std::barrier' class in C++ multi-threading?
Q5
What is the purpose of the 'std::promise' class in C++ multi-threading?
Q6
Which C++11 feature introduced support for multi-threading?
Q7
What is the difference between std::async and std::thread in C++ multi-threading?
Q8
What is the purpose of the 'std::unique_lock' class in C++ multi-threading?
Q9
What is the purpose of the 'std::packaged_task' class in C++ multi-threading?
Q10
What is the purpose of the 'std::recursive_mutex' class in C++ multi-threading?
Q11
What is the purpose of the 'std::atomic' class in C++ multi-threading?
Q12
What is the difference between std::mutex and std::recursive_mutex in C++ multi-threading?
Q13
Which of the following is a thread management library in C++?
Q14
Which of the following is used to implement a barrier in C++ multi-threading?
Q15
What does the term "thread-safe" mean in the context of multi-threading?
Q16
What is the purpose of the 'std::future' class in C++ multi-threading?
Q17
What is the purpose of the 'std::async' function in C++ multi-threading?
Q18
What is the purpose of the 'std::thread::hardware_concurrency()' function in C++ multi-threading?
Q19
What is a deadlock in the context of multi-threading?
Q20
What is the purpose of the 'std::lock_guard' class in C++ multi-threading?
Q21
What is the purpose of the 'std::atomic_flag' class in C++ multi-threading?
Q22
What is the purpose of the 'std::semaphore' class in C++ multi-threading?
Q23
What is the purpose of the 'std::latch' class in C++ multi-threading?
Q24
Which of the following is true about a condition variable in C++ multi-threading?
Q25
What is the primary purpose of a mutex in C++ multi-threading?