Mike Huls
Feb 6, 2023

--

Hello Sumanth,

Thanks for your comment!

You're right about the GIL and threading but I didn't include that part in this article since it's a bit off topic.

I have provided a link to how Python works under the hood, though: it pretty clearly explains how Python deals with the GIL and threading so check it out if you're interested:

https://mikehuls.medium.com/why-is-python-so-slow-and-how-to-speed-it-up-485b5a84154e

Also check out this article about using the Multiprocessing Pool that you've mentioned:

https://mikehuls.medium.com/applying-python-multiprocessing-in-2-lines-of-code-3ced521bac8f

Kind regards,

Mike

--

--

Mike Huls
Mike Huls

Written by Mike Huls

I write about interesting programming-related things: techniques, system architecture, software design and how to apply them in the best way. — mikehuls.com

No responses yet