Common factors to consider

Code that executes in a parallel manner has a few additional factors to consider as it's being developed. The first consideration is the input to the program. If the primary operations against any set of data are wrapped in a function or method, then the data is handed off to the function. The function does whatever it needs to do, and control is handed back to the code where the function was called. In a parallel processing scenario, that same function might be called any number of times, with different data, with control passing back to the calling code in a different order than their execution started in. As the datasets get larger, or more processing power is made available to parallelize the function, more ...

Get Hands-On Software Engineering with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.