by qbism » Thu Jun 27, 2013 4:12 am
With 2, 3, or 4 threads it's about the same. More than 4 threads and performance gets worse, possibly due to more overhead.
I might be doing something wrong, the tasks might be too short to make threading efficient, or there's a bottleneck, or maybe the processor is limited. My cpu is a laptop icore3 with two 'real' cores and two 'virtual' cores. With the define set to 4 threads, one of the cores runs at 75%, two others at 25%, and the last core idles. Could it be a RAM or bus bottleneck?