P3L4 Flashcards
Read/Writer Locks
Specify the type of access
Monitors
Shared resource
Entry procedure
Possible condition variables
Serializers
define priorities
hide explicit signaling and explicit cond. variables
Path expressions
use appropriate reg. exp. to capture synchronization
barriers
block all threads until n threads arrive
rendevous points
wait for multiple threads
RCU
Optimistic wait-free sync
read, copy, update lock part of Linux kernel
Atomic Instructions
test_and_set
read_and_increment
compare_and_swap
SMP
Shared Memory Multiprocessors (Symmetric Multiprocessors)
bus-based SMP
only 1 reference can be in flight
NCC
Non-cache coherence (must fix in software)
CC
Cache coherent (done in HW)
WI
Write Invalidate
WU
Write update (update immediately after)
Spinlock Performance Metrics
- Reduce latency
- Reduce waiting time
- Reduce contention