Vidyalelo
C++ Programming · Q30

Multi threading in C++

Programming · C++ Programming · question 30

Q30

What is the purpose of the 'std::semaphore' class in C++ multi-threading?

A.
To manage thread priorities
B.
To synchronize the execution of threads
C.
To provide mutual exclusion
D.
To control access to a shared resource by multiple threads
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board