~/talk

A Crash Course On Worker Threads

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [nodejs, concurrency]
slides:none on file

Node.js 10.5 introduces worker_threads (use 12.11.0+ for stable) and demonstrates a concrete hello‑world example, message passing and workerData usage, plus termination semantics. A real project builds a musician "six degrees" finder: single‑thread BFS takes ~14s, switching to bi-directional search cuts it to under 3s, and running two concurrent worker threads drops runtime to ~700ms. The uploader publishes the partial database and a Glitch visualizer; discussion covers shared memory/transferable buffers and worker pooling.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:51What are worker threads
  3. 8:54Hello world example
  4. 14:27Breadth-first search demo
  5. 18:46Bi-directional search
  6. 20:10Worker threads in action
  7. 22:58Performance comparison
  8. 25:09Live demo 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.