January 2015
Intermediate to advanced
360 pages
8h 50m
English
In this chapter, we've looked at two ways to support concurrent processing of multiple pieces of data:
multiprocessing module: Specifically, the Pool class and the various kinds of mappings available to a pool of workers.concurrent.futures module: Specifically the ProcessPoolExecutor and ThreadPoolExecutor class. These classes also support a mapping that will distribute work among workers that are threads or processes.We've also noted some alternatives that don't seem to fit well with functional programming. There are numerous other features of the multiprocessing module, but they're not a good fit with functional design. Similarly, the threading and queue modules can be used to build multithreaded applications, but the features ...
Read now
Unlock full access