Understanding parallelism in code design

We have already said that the most difficult work for a programmer is not to create the code—it is to properly design the application. When you follow these steps, after creating a good and stable design, you only have one step left: to write the code following the created design step by step. Our following example will try to teach you in a step-by-step manner how to approach the application creation from scratch, and at the same time think ahead on how to add parallelism later.

We will create a program that will calculate Schwefel's function. Usually, for the calculation of Schwefel's function and similar functions where probability and statistics make a significant difference in the results the genetic ...

Get C++ Multithreading Cookbook now with O’Reilly online learning.

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