3 ms·
Right now multi-processing use a very expensive serialization to send to one worker to another. Shared memory is much cheaper. Even if you didn't have the GIL,
by sametmax 10y ago
Right now multi-processing use a very expensive serialization to send to one worker to another. Shared memory is much cheaper.
Even if you didn't have the GIL, you would still need locks with threads to manipulate any mutable datastructure. The usual concurreny safety advice always apply.