~/talk

A Multi-threaded, Transaction-Based Locking Strategy for Containers

Talkat CppCon 2020 · 2020-09-14..09-18· [concurrency, software-architecture]
links:none on file
slides:none on file

Presents a C++17 implementation of strict timestamp ordering for transactional locking on elements (std::vector elements hold an atomic pointer to a transaction manager and a per-element timestamp), using std::mutex, std::condition_variable and atomic operations including compare_exchange_strong. Testbed: 10M items, 100k transactions, update group size 20, 1–16 threads; result: transactional run time grows only ~2× from 1→16 threads on large tables but rollbacks and cost climb as table size shrinks; vector resizing is not supported and starvation is possible.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:14Problem definition and constraints
  3. 8:27Desired properties of solution
  4. 13:01Overview of strict timestamp ordering
  5. 20:05Synchronization components needed
  6. 22:09Algorithm high-level overview
  7. 26:21Transaction manager implementation
  8. 33:03Acquiring elements in update group
  9. 41:09Testing strategy and race detection
  10. 50:30Performance results and analysis
  11. 1:00:18Q&A session
~/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.