TSan으로 데이터 레이스 디버깅 — Happens-before 추적
ThreadSanitizer로 멀티스레드 버그 추적 — happens-before 모델, false positive, atomic·mutex 통합.
11개의 포스트
ThreadSanitizer로 멀티스레드 버그 추적 — happens-before 모델, false positive, atomic·mutex 통합.
Valgrind의 두 동시성 분석 도구 비교 — Helgrind의 락 추적과 DRD의 vector clock, 언제 무엇을.
Concurrency vs Parallelism (Rob Pike). Race condition. Memory model 도입.
MPMC와 SPSC 차이, Vyukov bounded 큐 구현과 exactly-once 검사, mutex·moodycamel과의 처리량 비교, bounded와 unbounded를 정리합니다.
False sharing의 원리, 8/64/128 B 간격 실측, hardware_destructive_interference_size, per-CPU·thread_local 배치, perf c2c의 요구 조건을 정리합니다.
ABA 시나리오 재연, tagged pointer(16바이트 CAS·상위 16비트 tag), hazard pointer·RCU와의 관계를 실측과 함께 정리합니다.
Lock hold time, 코어 수, preemption, real-time 요구사항에 따라 spinlock과 mutex를 어떻게 고를지 ticket lock과 MCS lock까지 함께 정리합니다.
memory_order별 ARM 명령어 차이, LSE vs LL/SC, hot spinning 회피까지 atomic 연산의 실측 비용을 정리합니다.
CAS loop, strong과 weak CAS, ABA 회피, exponential backoff, spurious failure까지 CAS 사용의 표준 패턴을 정리합니다.
Lock-free 메모리 회수, ABA 회피, RCU와의 비교, C++ proposal까지 hazard pointer의 원리와 구현을 정리합니다.
RCU 원리, rcu_read_lock, grace period, synchronize_rcu, 임베디드 적용(URCU)을 정리합니다.