Vidyalelo
C++ Programming · Q25

Multi threading in C++

Programming · C++ Programming · question 25

Q25

What is the purpose of the 'std::thread::hardware_concurrency()' function in C++ multi-threading?

A.
To return the number of threads created by the program
B.
To return the number of cores in the system
C.
To return the number of hardware concurrency units supported by the implementation
Answer
D.
To return the number of threads currently running

Answer: Option C

Solution

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