Posted on 2006-05-02
Just a general question.
I have a CPU intensive image processing task that I have to execute on like 50 images. Do you think it would be better to:
1) Let each thread process its own image - if I have 8 processors, spawn 8 threads at a time, each thread processing its own image, until all 50 are done.
2) Keep spawning threads to process multiple pixels at once - if there are 250,000 pixels per image, keep spawning 8 threads, each of which does its own per pixel processing task.