Vidyalelo
C++ Programming · Q27

Multi threading in C++

Programming · C++ Programming · question 27

Q27

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

A.
To manage thread priorities
B.
To synchronize the execution of threads
C.
To provide atomic access to a boolean flag
Answer
D.
To provide mutual exclusion

Answer: Option C

Solution

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