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