Why false sharing decreases when array size increases? Is it because when array size increases, the array becomes sparser, so it's less likely to have false sharing?
kayvonf
When the array size increases, each processor gets more data. Since it gets more data, it's more likely that it will write more elements (contiguously) to each bin. Therefore, most cache lines will be written to by only one processor.
Why false sharing decreases when array size increases? Is it because when array size increases, the array becomes sparser, so it's less likely to have false sharing?
When the array size increases, each processor gets more data. Since it gets more data, it's more likely that it will write more elements (contiguously) to each bin. Therefore, most cache lines will be written to by only one processor.