def main():
    n = 8
manager = multiprocessing.Manager()
array = manager.list([0] * n)
pool = multiprocessing.Pool(4)
pool.map(worker, [(i, array) for i in range(n)])
print(array)
Multiprocessing with pool in python: About several instances with same name at the same time