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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access