O'Reilly logo

C++ Multithreading Cookbook by Milos Ljumovic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required