ParallelDo
This feature is not supported on the Wolfram Cloud.

ParallelDo[expr,{imax}]
evaluates expr in parallel imax times.

ParallelDo[expr,{i,imax}]
evaluates expr in parallel with the variable i successively taking on the values 1 through imax (in steps of 1).

ParallelDo[expr,{i,imin,imax}]
starts with i=imin.

ParallelDo[expr,{i,imin,imax,di}]
uses steps di.

ParallelDo[expr,{i,{i1,i2,}}]
uses the successive values i1, i2, .

ParallelDo[expr,{i,imin,imax},{j,jmin,jmax},]
evaluates expr looping in parallel over different values of j, etc. for each i.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

ParallelDo works like Do, but in parallel:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

No results are returned by ParallelDo:

In[1]:=
Click for copyable input

Use a shared variable to communicate results found to the master kernel:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2008
(7.0)
| Updated in 2010
(8.0)