| 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 |
Each object has a unique identifier within its parent object. The ID value is assigned at the time of object creation. You can use the ID property value to distinguish one object from another, such as different tasks in the same job.
Usage | Job object or task object |
Read-only | Always |
Data type | Double |
The first job created in a job manager has the ID value of 1, and jobs are assigned ID values in numerical sequence as they are created after that.
The first task created in a job has the ID value of 1, and tasks are assigned ID values in numerical sequence as they are created after that.
Examine the ID property of different objects.
jm = findResource('scheduler','type','jobmanager', ...
'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm)
createTask(j, @rand, 1, {2,4});
createTask(j, @rand, 1, {2,4});
tasks = get(j, 'Tasks');
get(tasks, 'ID')
ans =
[1]
[2]
The ID values are the only unique properties distinguishing these two tasks.
![]() | HostName | IdleWorkers | ![]() |

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 |