3 ms·
Why? Python gives you the ability to spawn processes so there's always an escape hatch for building multi-core code.
by zackees 4y ago
Why? Python gives you the ability to spawn processes so there's always an escape hatch for building multi-core code.
- __d 4y agoRight. But as you implicitly note, it's a work-around ("escape hatch"), not a feature. eg. Unix had processes from day 1, but threads were added (with significant effort) because threads are a better abstraction for addressing lot of problems. Especially so when your CPU has lots of cores. The work to make multiprocessing better is certainly useful, and valuable, but it's still a work-around.