| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Parallel Computing Toolbox |
| Contents | Index |
| Learn more about Parallel Computing Toolbox |
A parallel job consists of only a single task that runs simultaneously on several workers, usually with different data. More specifically, the task is duplicated on each worker, so each worker can perform the task on a different set of data, or on a particular segment of a large data set. The workers can communicate with each other as each executes its task. In this configuration, workers are referred to as labs.
In principle, creating and running parallel jobs is similar to programming distributed jobs:
The differences between distributed jobs and parallel jobs are summarized in the following table.
Distributed Job | Parallel Job |
|---|---|
MATLAB sessions, called workers, perform the tasks but do not communicate with each other. | MATLAB sessions, called labs, can communicate with each other during the running of their tasks. |
You define any number of tasks in a job. | You define only one task in a job. Duplicates of that task run on all labs running the parallel job. |
Tasks need not run simultaneously. Tasks are distributed to workers as the workers become available, so a worker can perform several of the tasks in a job. | Tasks run simultaneously, so you can run the job only on as many labs as are available at run time. The start of the job might be delayed until the required number of labs is available. |
A parallel job has only one task that runs simultaneously on every lab. The function that the task runs can take advantage of a lab's awareness of how many labs are running the job, which lab this is among those running the job, and the features that allow labs to communicate with each other.
![]() | Programming Parallel Jobs | Using a Supported Scheduler | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |