cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

enpsuedo
Journeyman III

Multi thread performance hit

More threads=Slower performance

Hi All,

Relatively new to MP. Here's the issue.

When running more than 1 thread (inc main thread) there is a x3 factor of slowness compared with sequential. Some sort of conflict is occuring.


Simply,

createthread 0
affinity to cpu 0
createthread 1
affinity to cpu 1

Thread1
Loop


Thread2
Loop


All variables are local to each thread.

Is there some sort of thrashing that occurs due to swapout between timeslices?

Is this normal?


Cheers,

.enpsuedo
0 Likes
0 Replies