This particular case is safe, yes.
Reading and writing to different parts of an array does not interfere with the other operations.
However, reading and writing to the same location can give you problems, depending on the type of element, and the size of the elements.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…