A Tutorial on Parallel and Concurrent Programming in Haskell

Free registration required

Executive Summary

This practical tutorial introduces the features available in Haskell for writing parallel and concurrent programs. The paper first describes how to write semi-explicit parallel programs by using annotations to express opportunities for parallelism and to help control the granularity of parallelism for effective execution on modern operating systems and processors. The paper then describes the mechanisms provided by Haskell for writing explicitly parallel programs with a focus on the use of software transactional memory to help share information between threads. Finally, the paper shows how nested data parallelism can be used to write deterministically parallel programs which allows programmers to use rich data types in data parallel programs which are automatically transformed into flat data parallel versions for efficient execution on multi-core processors.

  • Format: PDF
  • Size: 618.4 KB