Parallel pool of thread workers on the local machine
Useparpool
to create a parallel pool of thread workers on your local machine. After you create the pool, parallel pool features, such asparfor
orparfeval
, run on the workers. With theThreadPool
object, you can interact with the parallel pool.
Create a parallel pool of thread workers on the local machine by using theparpool
function.
pool = parpool("threads")
delete |
Shut down parallel pool |
parfeval |
Run function on parallel pool worker |
parfevalOnAll |
Execute function asynchronously on all workers in parallel pool |