|
D.15.16.2 parallelWaitFirst
Procedure from library parallel.lib (see parallel_lib).
- Usage:
- parallelWaitFirst(commands, args[, timeout, linktype, servers,
maxmemory]); commands list, args list, timeout int, linktype string,
servers list, maxmemory intvec
- Return:
- a list, containing at least one (if no timeout occurs) of the results
of commands[i] applied to arg[i], i = 1, ..., size(commands).
The command
parallelWaitFirst(list commands, list args, list #) is
synonymous to
parallelWaitN(list commands, list args, 1, list #) . See
parallelWaitN for details on optional arguments and other
remarks.
Example:
| LIB "parallel.lib";
LIB "primdec.lib";
ring r = 0, (x,y,z), lp;
ideal i = z8+z6+4z5+4z3+4z2+4, y-z2;
list commands = list("primdecGTZ", "primdecSY");
list args = list(list(i), list(i));
parallelWaitFirst(commands, args);
==> [1]:
==> empty list
==> [2]:
==> [1]:
==> [1]:
==> _[1]=z6+4z3+4
==> _[2]=y-z2
==> [2]:
==> _[1]=z3+2
==> _[2]=y-z2
==> [2]:
==> [1]:
==> _[1]=z2+1
==> _[2]=y-z2
==> [2]:
==> _[1]=z2+1
==> _[2]=y+1
| See also:
MP links;
Ssi links;
waitfirst.
|