~/talk

Concurrency for !Dummies (Who Don't Get It (...Yet))

Talkat Nickel City Ruby 2014 · 2014-10-02..10-04· [ruby, concurrency]
slides:none on file

Explains that MRI Ruby’s global interpreter lock keeps threads from running CPU-bound Ruby code in parallel (MRI 1.8 vs 1.9/2.x behavior), shows sleeping threads speed up I/O waits but CPU-bound math gets slower, and reports a poker-hand gem that runs 1.3 trillion combinations in 5 minutes single-threaded but rises to 7 minutes when threaded. Demonstrates race conditions fixed with a mutex, contrasts JRuby (JVM threads hitting ~180% CPU for three threads), and outlines alternatives like the actor model and Go-style channels.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:05Defining concurrency
  3. 4:40Concurrency vs parallelism
  4. 9:24Threads and the GVL in Ruby
  5. 14:58Working with shared state
  6. 20:51The limits of Ruby threads
  7. 23:28Advanced concurrency patterns
  8. 26:38Conclusion and resources
~/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.