def f(x):
    created = multiprocessing.Process()
current = multiprocessing.current_process()
print('running:', current.name, current._identity)
print('created:', created.name, created._identity)
return x * x
p = multiprocessing.Pool()
print(p.map(f, list(range(6))))
Get a unique ID for worker in python multiprocessing pool