~/talk

Are there Time-Bombs in your Realtime Code?

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [embedded-and-hardware, c-and-cpp]
links:none on file
slides:none on file

Many common RT sync tricks silently break: compilers can turn a 64-bit access into two instructions, structure packing or bus/DMA can remove apparent atomicity, and read-modify-write (+ =) is not atomic. Disabling interrupts only protects a single core, and double-buffering fails on multi‑core because other cores can observe mixed updates; priority inheritance can reorder access. Volatile is not synchronization, delays are time‑bombs, and std::atomic behaves differently across platforms with some using loops and barriers so interrupt‑disable only works on single core.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:49Overconfidence in real-time programming
  3. 3:59Severity of bugs in production
  4. 5:23Race conditions and atomicity basics
  5. 7:13Single-instruction atomicity pitfalls
  6. 10:48Time bombs in hidden assumptions
  7. 12:37Native-size atomicity and alignment
  8. 16:08Atomicity beyond CPU cores
  9. 19:24Volatile and compiler behavior
  10. 20:29Read-modify-write atomicity issues
  11. 21:34Atomicity of multiple variables
  12. 23:22Double buffering and multicore risks
  13. 26:40Preemptive scheduling explained
  14. 31:39Priority inversion and inheritance
  15. 36:16Disabling interrupts for atomicity
  16. 39:52Limitations of interrupt masking
  17. 40:32Using delays as a workaround
  18. 43:48Modern C++ std::atomic library
  19. 47:12Platform-specific atomic implementations
  20. 51:12Portability and future-proofing code
  21. 52:17Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.