backgroundPool

Environment for running nelson's code in the background.

Syntax

  • pool = backgroundPool()

Output argument

  • pool - backgroundPool object.

Description

pool = backgroundPool() returns the background pool.

This allows to run other code in your Nelson's session at the same time.

Properties of backgroundPool object:

'FevalQueue': Queue of FevalFuture objects to run on the background pool (read only).

'NumWorkers': Number of workers (read only).

'Busy': Flag that indicates whether the background pool is busy, logical (read only).

Example

b = backgroundPool()
fptr = str2func('magic');
f = parfeval(b, fptr, 1, 9);

See also

parfeval, fetchOutputs.

History

Author

Allan CORNET

Last updated