Parallelism on two duo-core processor system
Posted
by
Qin
on Stack Overflow
See other posts from Stack Overflow
or by Qin
Published on 2010-12-22T17:50:48Z
Indexed on
2010/12/22
17:54 UTC
Read the original article
Hit count: 184
I wrote a Java program that draw the Mandelbrot image. To make it interesting, I divided the for loop that calculates the color of each pixel into 2 halves; each half will be executed as a thread thus parallelizing the task. On a two core one cpu system, the performance of using two thread approach vs just one main thread is nearly two fold. My question is on a two dual-core processor system, will the parallelized task be split among different processor instead of just utilize the two core on one processor? I suppose the former scenario will be slower than the latter one simply because the latency of communicating between 2 CPU over the motherboard wires.
Any ideas?
Thanks
© Stack Overflow or respective owner