O'Reilly logo

Shared Memory Application Programming by Victor Alessandrini

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

Chapter 15

Pipelining Threads

Abstract

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

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