ABA 문제 회피 — Tagged Pointer·Hazard·Generation Counter
ABA 시나리오 재연, tagged pointer(16바이트 CAS·상위 16비트 tag), hazard pointer·RCU와의 관계를 실측과 함께 정리합니다.
Tech articles, book reviews, and presentations.
페이지 46 / 56
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)을 정리합니다.
Wait-free 보장 patterns. Atomic flag, sequence number, latest-value (double buffer).
SPSC ring 구현. Power-of-2 size, head/tail atomic, memory order release/acquire.
WCET와 ACET의 차이, 측정 기반과 static analysis, cache 영향, hard real-time 요구사항을 정리합니다.
Active와 sleep, peripheral clock gating, DVFS, tickless idle, µA-level 측정까지 임베디드 전력 절감 기법을 정리합니다.