Parallel Universes: Node.js
summary
Shows how Node.js achieves parallelism by spawning worker threads (and forking processes) and wiring explicit message passing between child and parent; walks through a concrete forker/worker example that actually sends messages back and forth. Demonstrates a failing variant that uses shared memory race conditions and explains the subtle bug that appears. Includes live code behavior so the built example either succeeds with message serialization or breaks when memory is shared.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:50JavaScript
- 4:39Do not occupy the manager!
- 9:46Worker Threads
- 15:31Main Thread Thread communication
- 23:55Race condition
related talks
26mA Crash Course on Worker Threads
35mNodeJS: from single thread to worker threads
52mShared Memory in Multithreaded Node.js
13mConcurrency vs Parallelism in Node.js: Understanding the Event Loop & Worker Threads
33mNode.js: The Road to Workers
27mA Crash Course On Worker Threads
59mWays to Parallelize Tests in JavaScript
28mNode.js: The Road to Workers
