def child():
    print(sum(global_array))

def main():
    processes = [Process(target=child) for _ in range(10)]
for p in processes:
    p.start()
for p in processes:
    p.join()
if __name__ == '__main__':
    main()
Share Large, Read-Only Numpy Array Between Multiprocessing Processes