Lecture 17

Learning objectives

After this class, you should be able to:

  1. Use POSIX semaphores to implement correct threaded code for application patterns, such as producer-consumer.
  2. Use pthreads barrier for synchronization of threads.

Reading assignment

  1. Section 4.7 - 4.8.
  2. Lecture 17 slides.
  3. Lecture 17 example codes.

Exercises and review questions


Last modified: 2 Nov 2017