Previous | Next --- Slide 55 of 56
Back to Lecture Thumbnails

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.