Goals for this week (Lecture 5-6)

Share-memory programming with Pthreads.

Outline


Profiling Tools

Pthreads

Critical Sections and Synchronization

Thread Safety

Caveat: Incorrect programs can produce correct output!