
CHAPTER
2 Parallel Programs
We can apply an understanding of the basic process and its goals to a simple but
detailed example to see what the resulting parallel programs look like in the three
major modern programming models introduced in Chapter 1: shared address space,
message passing, and data parallel. Our focus will be on illustrating programs and
programming primitives, not so much on performance, which is the subject of
Chapter 3.
23 PARALLELIZATION OF AN EXAMPLE PROGRAM
The four case studies introduced at the beginning of the chapter all lead to parallel
programs that are too complex and too long to serve as useful sample programs. ...