~/talk

Designing for Concurrency Using Message Passing in C++

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [concurrency, c-and-cpp]
slides:none on file

Argues that pushing all synchronization into a message-passing framework removes large classes of concurrency bugs and OS-level deadlocks, and recommends no shared mutable state and value-type messages. Demonstrates a concrete implementation: a dining-philosophers system with separate IO, timer and chopstick-manager microservices (chopstick manager enforces “two or none”), and a robot controller with a central coordinator, per-actuator controllers and timers. Uses in-process queues or network transports, assumes frameworks provide non-reentrancy guarantees; examples compile and the designs work as shown in the slides.

AI-written summary · about

  1. 0:00Designing for Concurrency Using Message Passing Anthony Williams
  2. 10:44What is a Message Passing Framework?
  3. 16:53Delivery Mechanisms
  4. 23:15Value Types
  5. 24:44Avoid blocking
  6. 27:45Example: Dining Philosophers
  7. 31:17The Timing Actor
  8. 37:02The Server Actor: Chopstick Requests
  9. 40:30Example: A robot control system
  10. 43:25Actuator actors
~/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.