previous up next
Go backward to ClearD: Clear a Shared Object
Go up to 3.3 Shared Data
RISC-Linz logo

ProcessD: Execute a Task by a Separate Process

task=ProcessD["command"]

This call evaluates the outermost function of command on a separate (possibly newly created) Mathematica process, after the rest of the functions contained in command have been evaluated on the local kernel. All the previous calls of AllD have been executed, in the corresponding order, by this separate process. A handle for the task is returned. During the execution of the task, no other task is scheduled on this process.

When ProcessD is called inside a Module, the arguments and local variables cannot be passed for the evaluation of command's arguments, and therefore in these situations, ProcessD should be called inside a Block.

The execution of ProcessD may involve a much larger runtime overhead than the execution of StartD.

In[3]:=t=ProcessD["Integrate[x^n, x]"]
Out[3]=0

As for StartD, there is another form for ProcessD:

task=ProcessD[name, args...]

This call creates a task as the previous form, that executes name[args...] on a separate process.

In[3]:=t=ProcessD[Integrate,x^n,x]
Out[3]=0

Maintained by: Cleo Pau
Last Modification: July 5, 2000

previous up next