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