What is a data race in C++?
-
A
Two threads competing to finish a computation first
-
B
Two threads simultaneously accessing the same memory location where at least one access is a write and neither is synchronized
-
C
A race condition in which thread scheduling determines program correctness
-
D
A situation where two threads deadlock while accessing the same data