🇨🇱
DeliveredJSConf Chile 2024
Santiago, Chile
Multithread in Javascript with Web Workers
Abstract
JavaScript is often described as single-threaded, but that's only half the story. This session dives into web workers (the browser's built-in mechanism for true parallelism) and shows how to offload CPU-intensive work off the main thread without blocking the UI. We'll cover the fundamentals of concurrency vs. parallelism, walk through the JavaScript runtime model, and build real examples that demonstrate measurable performance gains.
§Topics Covered
- 01JavaScript Runtime model: call stack, event loop, and task queue
- 02Concurrency vs. parallelism: what they mean in a browser context
- 03Web Workers API: setup, communication, and lifecycle
- 04Shared memory with SharedArrayBuffer and Atomics
- 05Practical patterns: image processing, data parsing, and heavy computation off the main thread
- 06Pitfalls, debugging strategies, and browser support
Event Info
ConferenceJSConf Chile 2024
DateDecember 7, 2024
Time12:30 PM
LocationSantiago, Chile 🇨🇱
StatusDelivered
