Understanding distributed computing taxonomy

workers are the processes doing the work, and are a subset of all processes, which are returned by nprocs():

julia> using Distributed

julia> procs()
1-element Array{Int64,1}:
 1

julia> addprocs(2)
2-element Array{Int64,1}:
 2
 3

julia> procs()
3-element Array{Int64,1}:
 1
 2
 3

julia> workers()
2-element Array{Int64,1}:
 2
 3

So here process 1 is the “main” process that distributes the work to the worker processes 2 and 3.

1 Like