I have a main Python process, and a bunch or workers created by the main process using os.fork().
I need to pass large and fairly involved data structures from the worke
multiprocessing's queue implementation works.
multiprocessing
q = multiprocessing.Queue() if (os.fork() == 0): print(q.get()) else: q.put(5) # outputs: 5