~/talk

Concurrency Showdown: Threads vs. Fibers

Talkat RubyConf AU 2024 · 2024-04-11..04-12· [ruby]
links:none on file
slides:none on file

Claims Ruby 3.0 rewrites fiber scheduling and optimizes GVL handling, shows fiber scheduler plus explicit fiber.yield/resume control for non‑blocking I/O, and combines fibers for network fetches with threads for CPU‑bound image transforms to get real speedups; demo builds an image‑processing service that uses async, async‑http, async‑io, Falcon and shows the hybrid approach works in practice while noting fibers lack native parallelism and GVL still limits pure threaded CPU scaling.

AI-written summary · about

  1. 0:00Introduction
  2. 2:08Concurrency vs parallelism
  3. 3:37Threads old-school model
  4. 5:25Fibers lightweight alternative
  5. 7:31Race conditions: threads vs fibers
  6. 10:00Deadlocks and handling
  7. 12:46Interrupts management
  8. 14:30Limitations of threads and fibers
  9. 17:47Threads and fibers combined
  10. 19:09Justice League approach
  11. 20:55Closing thoughts
~/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.