Can two threads write to different element of the same array?

Viewed 5867

I was wondering whether or not two threads could modify elements of the same array.

If I have unsigned char array[4], can thread1 set array[0] and array[1] to 'A' and thread2 set array[2] and array[3] to 'B' at the same time without problems?

3 Answers
Related