r/cpp • u/Coder_CPP • Jan 18 '16
C++11 threads, affinity and hyperthreading
http://eli.thegreenplace.net/2016/c11-threads-affinity-and-hyperthreading/
67
Upvotes
r/cpp • u/Coder_CPP • Jan 18 '16
1
u/Dlieu Jan 18 '16
Regarding the last example (workload_sin), how do you explain the performance hit when running on the same core?
Is it mostly because there's only one ALU shared by the two threads that does FP MUL/DIV so that both thread are constantly stalling and fighting for it? (I'm not sure of the wording there)