~/talk

Subprocesses, Threads and Fibers

Talkat Rubyfuza 2013 · 2013-02-01..02-03· [ruby, concurrency]
slides:none on file

Compares three concurrency mechanisms with runnable examples: a "stupidest web client" implemented with threads showing thread.join blocks and silent exceptions; the same client forked to show child/parent behavior, pipes for IPC and the impact of copy-on-write plus GC defeating CoW on REE versus Ruby 2.0's bitmap marking; and a fiber-based client demonstrating fiber.yield/resume, inter-fiber transfer and the 4k stack limit. Claims: MRI 1.9 GIL means no parallelism, JRuby/Rubinius/Truffleruby allow parallelism, mixes (forks+fibers or threads+fibers) recommended per runtime.

AI-written summary · about

  1. 0:00Introduction to concurrency
  2. 3:49Threads in Ruby
  3. 8:25Process forks in Ruby
  4. 13:03Fibers in Ruby
  5. 18:56Choosing concurrency model
~/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.