3 ms·
That doesn't get you much more than Python's multiprocessing; you still need to have any state shared between the processors in a simple linear memory and not i
by johncolanduoni 3y ago
That doesn't get you much more than Python's multiprocessing; you still need to have any state shared between the processors in a simple linear memory and not in Python objects if you follow the web's model of postMessage + SharedArrayBuffer.
- spacechild1 3y agoI see at least 3 advantages: 1. Threads are significantly cheaper than processes in terms of memory, setup and context switch overhead 2. Inter-thread-communication is simpler and more performant than inter-process-communication 3. C extensions can share data structures across (sub)interpreters