Shared Memory in Multithreaded Node.js
summary
Covers using Node.js worker_threads together with SharedArrayBuffer and Atomics to build multithreaded, shared-memory Node.js programs. Explains concurrency concepts (critical sections, race conditions, deadlocks, livelocks), synchronization primitives (locks, semaphores, mutexes, monitors, counters) with code examples, practical use cases for worker_threads, and a short list of remaining issues in Node.js workers for potential contributors.
AI-written summary · about
chapters (14)
- 0:00Experimental threads in Node.js
- 3:27Processes vs threads
- 8:10Worker Threads API
- 11:54Parallel programming basics
- 15:49Synchronization primitives
- 26:40Shared memory structures
- 29:55High-level abstractions
- 34:15Thread limitations
- 37:50me2sing library
- 41:25Multithreading complexity
- 45:42Common thread tasks
- 47:53Testing parallel code
- 48:35Intensive computing
- 50:00Node.js thread goals








