
222 Introduction to Concurrency in Programming Languages
FIGURE 10.2: A picture of the Mandelbrot set.
10.3 Case study: Mandelbrot set computation
One of the classic programs that students build for learning parallel com-
puting has been the computation of the familiar Mandelbrot set fractal shown
in Figure 10.2. We will illustrate in this section how the problem can be de-
composed into a set of tasks that are implemented using a master-worker
pattern. This problem is also a convenient case to study the load balancing
properties that come easily with the master-worker model. In this example,
we will use the parallel language Cilk as our language of ...