Architecture

The architecture of the parallel programming facilities is shown in Figure 30.2, which can also be found on MSDN. It clearly pinpoints the layering of the individual components out of which the framework is built.

Image

FIGURE 30.2 Keeping processors busy with an ideal number of threads.

Notice how the TPL is only a small building block of a bigger story. In our coverage of task and data parallelism in this chapter, we focus on the TPL but also PLINQ, which, strictly speaking, is a different component. Let’s talk about the layering a bit more.

At the bottom of the diagram, you can see a number of threads that correspond to the processors ...

Get C# 5.0 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.