Version without JavaScript, read-only: workshops, quizzes and running code are not available here. Full version · Catalogue · Sign in

Exercise sheet 7

Parallelism

Interleavings and lost updates, finding and fixing a deadlock, debugging a bounded queue, passing arguments to threads, a rendezvous with semaphores, and the cost of a lock. Chapter 7.

Programs are compiled with gcc -std=c11 -Wall -Wextra -Werror -D_POSIX_C_SOURCE=200809L -pthread.