So, I'm kinda new to parallel computing...
Let's suppose I have an array arr
in C++ code. Does accessing cells with different indexes from different threads create a race condition? For example if one thread will set some value let's say to arr[i]
and the second one will write into arr[j]
( where i != j
).