Why Threads Are Hard
Synchronization:
Must coordinate access to shared data with locks.
Forget a lock? Corrupted data.
Deadlock:
Circular dependencies among locks.
Each process waits for some other process: system hangs.
lock A
lock B
thread 1
thread 2
Previous slide
Next slide
Back to first slide
View graphic version