~/talk

Ticket Spinlocks in Zephyr RTOS: What, Where & Why

links:none on file
slides:none on file

Zephyr replaces a simple atomic flag spinlock with ticket spinlocks and adds a fairness test; simulated runs on a Synopsys simulator expose a livelock caused by deterministic instruction batching, and a four-core board shows one core grabbing almost all locks while others starve; ticket spinlocks restore per-core fairness in both simulator and hardware but host scheduling and virtualization can still skew acquisition order; the implementation is available but marked experimental while work continues on atomic packing and corner cases.

AI-written summary · about

  1. 0:00Ticket spinlocks in Zephyr
  2. 4:21Spinlock fairness problem
  3. 10:04Detecting unfairness with tests
  4. 14:24How ticket spinlocks ensure fairness
  5. 22:26Performance impact of ticket spinlocks
  6. 27:08Pitfalls in ticket spinlocks
  7. 28:59Status and future in Zephyr
  8. 32:01Q&A
~/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.