MATLAB Help Center
Access parallel worker information
getCurrentWorker in the workspace of the MATLAB worker.
getCurrentWorker
In the client workspace, a parallel.Worker object is available from:
parallel.Worker
The Workers property of a parallel.Pool object. (since R2025a)
Workers
parallel.Pool
The Worker property of a parallel.Task object.
Worker
parallel.Task
Parent
parallel.cluster.MJS
parallel.cluster.CJS
Children
none
A parallel.Worker object provides access to the MATLAB worker session that executes a task as part of a job. The job can be an interactive parallel pool job or a batch job.
parallel.cluster.MJSWorker
parallel.cluster.CJSWorker
parallel.ThreadWorker
MATLAB thread worker (since R2025a)
There are no methods for a parallel.Worker object other than generic methods for any objects in the workspace, such as delete, etc.
delete
The following table describes the properties of a MATLAB Job Scheduler worker.
AllHostAddresses
ComputerType
computer
Name
The following table describes the properties of an CJS worker.
Host
ProcessId
The following table describes the properties of a thread worker.
To get further help on the types of parallel.Worker objects, including a list of links to help for its properties, type:
help parallel.cluster.MJSWorker help parallel.cluster.CJSWorker help parallel.ThreadWorker
parallel.Cluster, parallel.Job, parallel.Task
parallel.Cluster
parallel.Job
Introduced in R2012a
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office