Concurrency, Parallelism and Scheduling in JavaScript
summary
Explains how JavaScript achieves concurrency on one thread and where true parallelism appears using React Fiber for cooperative scheduling, Web Workers for isolated threads, and the Atomics API with SharedArrayBuffer for shared-memory coordination. Compares scheduling models, shows how Fiber yields work in chunks to keep UI responsive, and outlines when actor-style message passing beats shared-memory. Gives concrete code-level mechanisms and tradeoffs rather than high-level platitudes.
AI-written summary · about
