Are Array read/writes atomic in nature?
int[] arr = new int[10];
int[8] = 4; // This is what I'm interested in
In the above code, the second line should generate two Machine Instructions like
reg1 = reg_containing_arr_address + 32
Memcopy reg1 4
Some posts on stack overflow saw that these are atomic. Can anyone explain me how they are?