Examveda
Examveda

What is a race condition in multi-threading?

A. A condition where the outcome of a program depends on the order of thread execution

B. A condition where multiple threads try to access shared resources simultaneously

C. A condition where threads wait indefinitely for a signal

D. A condition where threads execute in parallel

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