In this lesson, you’ll create a multiprocesing.Pool
object. This is an interface that you can use to run your transform()
function on your input data in parallel, spread out over multiple CPU cores. This Pool
instance has a map()
function, so you can map()
the transform()
function over scientists.
Now, when you run your program, you’ll see that you get the same result, but you get it a lot faster. This happened because you did your processing in two batches. In the next lesson, you’ll keep working with multiprocessing.Pool()
.
cdrr930725 on Dec. 1, 2019
When I run the code my terminal starts going crazy, and I never got the desire output. My code is a replica of the lecture code. Please check the link bellow:
codeshare.io/2B4mxy