Lecture 16

Learning objectives

After this class, you should be able to:

  1. Parallelize matrix-vector multiplication using pthreads.
  2. Explain the idea of race conditions and critical sections.
  3. Explain some disadvantages of the busy-waiting solution provided in the text book for mutual exclusions.
  4. Use pthreads locks to implement mutual exclusions.

Reading assignment

  1. Section 4.3 - 4.6.
  2. Lecture 16 slides.
  3. Lecture 16 example codes.

Exercises and review questions


Last modified: 31 Oct 2017