Go backward to dist[all] : Execute a CommandGo up to 3.2 Basic Model Go forward to dist[wait] : Wait for a Task Result |
dist[start]
: Create a Tasktask := dist[start](fun, args...)
This call creates a task that computes fun(args...) on some Maple kernel connected to the distributed session.
All created tasks are scheduled on a fixed number of Maple kernels. If a task
is suspended (e.g. by dist[wait]
), then another task may
be executed on the respective kernel such that in general a kernel hosts a
whole stack of tasks of which only the task on top is active.
This scheme is deadlock-free if args does not contain other tasks or
shared objects. Otherwise, do not use dist[start]
but
dist[process]
.
> t := dist[start](int, x^n, x); t := 0