What can make a program run slower when using more threads?

后端 未结 7 1169
耶瑟儿~
耶瑟儿~ 2020-12-10 09:20

This question is about the same program I previously asked about. To recap, I have a program with a loop structure like this:

for (int i1 = 0; i1 < N; i1+         


        
相关标签:
7条回答
  • 2020-12-10 09:49

    You are seeing cache line bouncing. I'm really surprised that you don't get wrong results, due to race conditions on the histogram buckets.

    0 讨论(0)
提交回复
热议问题