When dealing with a large number of tasks that are to be executed one would rather not have a sequential task execution since it is a long, slow and a rather boring process. Instead what we would want is that our program launches all the tasks at the same time so they can be completed side by side.
Parallelism or concurrent task execution is not a new concept and is supported in most of the major languages. Python is no different and does provide a pretty neat module that could be easily used to run tasks in a parallel or concurrent fashion. My goal in this article is to provide a brief overview on how multi-threading and multi-processing works in python and i’ll be doing a benchmark on the performance of both. The article will cover the following topics:

#analysis #python #programming #multiprocessing #multithreading

Python Multi-Threading vs Multi-Processing
1.10 GEEK