~/talk

Dear God, what am I doing? Concurrency and parallel processing

Talkat wroc_love.rb 2013 · 2013-03-01..03-03· [concurrency]
slides:none on file

Compares threads, fibers and forked processes with concrete examples: fetching N Google pages with a queue, four-thread worker pool, and fork+threads which measures fastest for that workload; shows adding threads can slow things due to context switching and MRI’s global interpreter lock preventing true CPU concurrency. Demonstrates a real bug from using non‑blocking queue empty/pop that causes deadlock, explains copy‑on‑write memory cost after fork, and demos Celluloid/DCell (ZeroMQ) with celluloid pools and supervision that restarts crashed workers.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:24Processes threads and fibers
  3. 3:10Making programs faster
  4. 5:13Thread basics and joining
  5. 6:38Shared memory and locks
  6. 8:03Threads vs processes
  7. 9:49Fibers overview
  8. 11:01Fetching Google searches
  9. 12:25Thread limits and context switching
  10. 13:50Global interpreter lock
  11. 14:53MRI vs JRuby Rubinius
  12. 15:35Multi-process caveats
  13. 16:59Combining processes and threads
  14. 17:41Queue deadlock issue
  15. 20:48Unicorn web server
  16. 21:51Memory costs of forking
  17. 23:13Celluloid and actor model
  18. 25:20Mailbox communication
  19. 26:46Worker pools in Celluloid
  20. 27:28Distributed Celluloid
  21. 28:51Non-blocking I/O overview
  22. 31:23Q&A and closing
~/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.