~/talk

Reader-Writer Lock versus Mutex

Talkat Meeting C++ 2017 · 2017-11-09..11-11· [rust]
links:none on file
slides:none on file

Claim: a mutex often outperforms a reader‑writer lock in high‑contention, short‑hold regimes. Evaluation uses Linux multi‑platform benchmarks with synthetic busy‑wait loads (e.g. 100 ≈ 300 math operations, 10,000 ≈ 30k math operations), reveals that one atomic write kills scalability once several cores contend, and that an initial RW implementation lost the bet to a mutex. A redesigned RW lock minimizes atomics, inherits mutex handoff fairness via a semaphore, and then outperforms mutex for long‑hold or high‑read workloads while only modestly losing where mutex should win.

AI-written summary · about

  1. 0:00Intro
  2. 0:51DEFINITIONS
  3. 3:17YOU MUST BE JOKING... SHALL WE BET?
  4. 6:00BENCHMARK DETAILS
  5. 8:52MANAGING EXPECTATIONS
  6. 10:22COST OF ONE ATOMIC
  7. 15:58COST OF MUTEX AND SEMAPHORE
  8. 17:20DESIGN CRITERIA
  9. 19:37LOSING IMPLEMENTATION
  10. 31:11GOAL
  11. 31:47WINNING IMPLEMENTATION
  12. 42:14LINUX RECAP
  13. 43:05SUNOS
  14. 44:00DARWIN
  15. 44:49SUMMARY
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.