Examveda

What does the term "thread-safe" mean in the context of multi-threading?

A. The code is guaranteed to be error-free

B. The code can be safely executed by multiple threads concurrently

C. The code can only be executed by a certain thread

D. None of the above

Answer: Option B


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