Examveda

Which of the following is true about a condition variable in C++ multi-threading?

A. It allows multiple threads to share the same memory location

B. It provides mutual exclusion

C. It provides atomic access to shared variables

D. It allows one thread to notify other threads about a condition

Answer: Option D


Join The Discussion

Related Questions on Multi threading in C plus plus

What is multi-threading in C++?

A. A process that allows parallel execution of tasks

B. A process that allows a single thread to execute

C. A process that allows multiple processes to execute concurrently

D. A process that allows multiple threads to execute concurrently