0

I am studying false sharing and I have an example on how to avoid it by padding arrays:

code example

Just making sure I understand correctly, this would only work if we're using 8 byte integers, right? If we're using 4 byte integers, the whole array would be 64 bytes and it wouldn't avoid false sharing.

devil0150
  • 1,350
  • 3
  • 13
  • 36

0 Answers0