In this lesson, you’re going to look at a little testbed program that you’re going to build and use to measure execution time with the time.time()
function, so that you can compare the single-threaded and multithreaded implementations of the same algorithm.
In the next lesson, you’ll see why you’d want to do all this. Because you wrote your code in a functional programming style, you can parallelize it fairly easily. There’s a parallel map
construct that you can use. That way, you can run your processing steps in parellel.
Pygator on Jan. 20, 2020
At the end you say it’s being processed in parallel, but we haven’t used anything from the multiprocessing module, so it’s still running serially.