Message Boards Message Boards

2 Replies
1 Total Likes
View groups...
Share this post:

Parallel computation of Image[] or Rasterize[]

Posted 11 years ago

The following command:
ParallelTable[Image[Graphics[{{Red, Disk[{5, 5}, 4]}}]], {i, 10}]

shows a very strange behaviour. It starts a new Mathematica process on every Parallel Kernel, so that using 6 Kernels I end up with 7 Mathematica Processes and 14 MathKernels running.
With Rasterize it is the same.

Can anyone explain/help?

Thanks a lot!

L. W.
POSTED BY: Lukas Wirth
2 Replies
The behavior you described is exactly what ParallelTable does. ParallelTable runs each of the items on a parrallel kernel. 

If you don't want the processes to ran in parallel on your computer, try using Table instead of ParallelTable.
POSTED BY: Sean Clarke
You asked the same question on Mathematica.SE as wellwhere it was answered.  When you do this, please do link the two questions together to avoid duplication of effort.
POSTED BY: Szabolcs Horvát
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract