float myfloats[2];
// thread A:
myFloats[0] = 1.0;
// thread B:
myFloats[1] = 1.0;
Assuming that thread A will always access index 0, thread B index 1. Is this safe or can the array get corrupted?
float myfloats[2];
// thread A:
myFloats[0] = 1.0;
// thread B:
myFloats[1] = 1.0;
Assuming that thread A will always access index 0, thread B index 1. Is this safe or can the array get corrupted?