<< fetchOutputs | Parallel | wait >> |
f = parfeval(bPool, fptr, n, x1, ..., xm) |
backgroundPool object returned by backgroundPool().
Function handle: Function to run.
Number of output arguments.
Input arguments, specified as a comma-separated list of variables or expressions.
FevalFuture object.
f = parfeval(bPool, fptr, n, x1, ..., xm) starts the function fptr to run in the background.
backgroundPool has NumWorkers available. If there are more functions scheduled, functions wait than one entry is available in pool.
parfeval runs the function fptr on a background worker.
b = backgroundPool()
fptr = str2func('cos');
f = parfeval(b, fptr, 1, 5);
r = fetchOutputs(f)
backgroundPool, fetchOutputs, feval.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET