How does this work e.g. for an array of integers that several workers threads write to at random, non-overlapping positions?