Go up to 3.2 Basic Commands Go forward to WaitD: Wait for the Result of a Task |
![]() |
task=StartD["command"]
This form of the call creates a new task, that evaluates the outermost function of command on some Mathematica kernel connected to the distributed session. When this form is called inside a function f, the user should use Block, and not Module to define f, in order to allow the evaluation of the arguments of command.
In[3]:=t=StartD["Integrate[x^n, x]"] Out[3]=0Another way of using StartD is:
task=StartD[name, args...]
This call creates a new task, that executes name[args...] on some Mathematica kernel connected to the distributed session. The arguments are evaluated on the local kernel. Both forms of StartD return a handle of the task.
In[3]:=t=StartD[Integrate,x^n,x] Out[3]=0