parallel pool of thread workers on the local machine -凯发k8网页登录
parallel pool of thread workers on the local machine
since r2020a
description
use parpool
to create a parallel pool of thread workers on
your local machine. after you create the pool, parallel pool features, such as
parfor
or parfeval
, run on the workers. with the
threadpool
object, you can interact with the parallel pool.
creation
create a parallel pool of thread workers on the local machine by using the parpool
function.
pool = parpool("threads")
properties
object functions
shut down parallel pool | |
run function on parallel pool worker | |
execute function asynchronously on all workers in parallel pool |
limitations
pools created using
parpool('threads')
and 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 .
version history
introduced in r2020a