How Python multithreading and multiprocessing compare to synchronous code

Jordan P. Raychev
Python in Plain English
5 min readMar 6, 2021

--

Recently, I’ve been working on several projects that required some kind of asynchronous behavior to speed up time execution. Most of you probably know that Python has a multi processing/threading modules that could help building such applications.

After a little bit of refactoring of my initial code, which by the way was synchronous, I was able to do a multiprocessing version of it that had quite an improvement. What I wasn’t sure about was by how much exactly improved my time execution. That was something…

--

--

Network, system and software engineer with true passion about technology. Love to read and spend time in nature.