Comment

Comment by whywhywhydude

If you have a non trivial application, multiprocessing just takes a lot of memory. Every child process that you create duplicates the parent memory. There are some interesting hacks like gc.freeze that exploits the copy on write feature of forks to reduce memory, but ultimately you can just create a few hundred of processes compared to thousands of threads because of memory consumption.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton