| Parallel Computing Toolbox™ | ![]() |
With MaximumNumberOfWorkers you specify the greatest number of workers to be used to perform the evaluation of the job's tasks at any one time. Tasks may be distributed to different workers at different times during execution of the job, so that more than MaximumNumberOfWorkers might be used for the whole job, but this property limits the portion of the cluster used for the job at any one time.
Usage | Job object |
Read-only | After job is submitted |
Data type | Double |
You can set the value to anything equal to or greater than the value of the MinimumNumberOfWorkers property.
Set the maximum number of workers to perform a job.
jm = findResource('scheduler','type','jobmanager', ...
'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm);
set(j, 'MaximumNumberOfWorkers', 12);
In this example, the job will use no more than 12 workers, regardless of how many tasks are in the job and how many workers are available on the cluster.
BusyWorkers, ClusterSize, IdleWorkers, MinimumNumberOfWorkers, NumberOfBusyWorkers, NumberOfIdleWorkers
![]() | MaximumNumberOfRetries | MinimumNumberOfWorkers | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |