Multiprocessor Cache Coherence

Scenario Thread A modifies data inside crit section and Release lock Thread B acquires lock, reads data

Write-Back Cache Coherence

Cache Coherence: 전체 메모리 구조에 하나의 복사본만 존재!

image.png

image.png

Directory based Cache Coherence

Reducing lock contention

락 개수를 줄이면 multi 환경에서 성능을 올릴 수 있다

락이 계속 바쁘다면 (Busy)