Toggle navigation
CS3650 Computer Systems
General
Syllabus
Schedule
Office Hours
Assignments
Resources
Week 9
Concurrency, pt. 2
Readings
Slides
Code
Additional Resources
Readings
OSTEP
Ch. 29-32
The Free Lunch is Over
Slides
Ji-Yong’s slides
Ferd’s notes
Code
File
Preview
Download
Description
1.
queue.c
HTML
queue.c
Thread-safe queue with independent head and tail
2.
sum-fork.c
HTML
sum-fork.c
Concurrent sum using fork and shared memory via mmap
Additional Resources
pthreads examples and on-line pthreads man pages
Think OS - Chapter 9 Threads
Think OS - Chapter 10 Condition variables
Think OS - Chapter 11 Semaphores in C
Cooperating sequential processes
by
E. W. Dijkstra