backgroundPool
Description
Use the background pool to run code in the background. When you run code in the background, you can run other code in your MATLAB® session at the same time.
Properties
Object Functions
parfeval | Run function in background |
parfevalOnAll (Parallel Computing Toolbox) | Run function asynchronously on all workers in parallel pool |
Examples
Limitations
Pools created using
parpool(‘Threads’)
andbackgroundPool
are both thread-based pools which utilize the same resources. It is possible that activity on one pool may block activity on the other and vice versa. Additionally, persistent data and random number generation stream state are shared in between these pools. For more information on controlling random number streams, see Control Random Number Streams on Workers (Parallel Computing Toolbox).
Extended Capabilities
Version History
Introduced in R2021b