November 2015
Intermediate to advanced
556 pages
17h 34m
English
The subject of this chapter is control parallelism: threads acting successively on the same data target. The pipeline parallel pattern as well as the various ways of synchronizing the cooperating threads are discussed in detail. The synchronization mechanisms are first illustrated by an image treatment example in which the image construction is pipelined. Next, some utility classes are introduced to simplify the implementation of synchronization patterns, and the pipeline pattern is used to reexamine the data dependency problem from the previous chapter. Various versions of the two preceding applications—using the OpenMP and vath environments—are proposed. Finally, the TBB pipeline class is discussed ...
Read now
Unlock full access