cluster.call

Syntax

a = cluster.call(s,i)

Calls the symbol s on process i. i must be a process different than the native process (the process returned by cluster.process). The value returned is the return value of the call to s after execution on process i.

If the value 0 is passed as the target process number, then the function s is executed on all processes, including the native one. In this case the return value is the return value of the native execution.

Returns:

a - the return value of the call to s on process i.

Arguments:

s - A :fish: symbol that must be a function.

i - The target process number, or 0 to indicate all processes.