Synchronization examples csapp.{c,h} CS:APP3e code library sbuf.{c,h} Circular buffer code suitable for producer/consumer programs race.c Testing code for race conditions in pthread_create norace.c Eliminate race condition by passing thread arguments using malloc'ed int's produce-consume.c: Demonstration of producer/consumer code using sbuf rw1.c: Readers/writers code from CS:APP3e read-write.c: Demonstration of readers/writers code deadlock.c: Demonstration of deadlock possibilities when different threads acquire locks in different orders pthreads_interpose: Code for a library that performs runtime interposition on pthreads calls. Interposed version insert small, random delays to increase variations in concurrent operations.