The use of
parallel_for is pretty straightforward. The first three examples in this section help you make sure you’re comfortable with Threading Building Blocks basics. The last two examples,
SubstringFinder, are a little more challenging and will help drill home how versatile
parallel_for can be. The next section implements John Conway’s Game of Life and is the only example to mix C++ and managed C++ in this chapter. Chapter 3 covers
parallel_for in detail.