DEV Community

Discussion on: Multiprocessing vs. Multithreading in Python: What you need to know.

Collapse
 
rhymes profile image
rhymes • Edited

Thanks for the article!

Bonus mentions: ThreadPoolExecutor and ProcessPoolExecutor - they allow you to easily create a pool of threads (the first) or processes (the latter) and to submit work to them.

You can also do something similar with multiprocessing.Pool if you use processes.