Title Statements
- Full title :Multithreaded JavaScript / Hunter, Thomas.
Summary
Traditionally, JavaScript has been a single-threaded language. Nearly all online forum posts, books, online documentation, and libraries refer to the language as single threaded. Thanks to recent advancements in the language--such as the Atomics and SharedArrayBuffers objects and Web Workers in the browser--JavaScript is now a multi-threaded language. These features will go down as being the biggest paradigm shift for the world's most popular programming language. Multithreaded JavaScript explores the various features that JavaScript runtimes have at their disposal for implementing multithreaded programming, providing both practical real-world examples, as well as reference material. Learn what multithreaded programming is and how you can benefit from it Understand the differences between a web worker, a service worker, and a worker thread Know when and when not to use threads in an application Orchestrate communication between threads by leveraging the Atomics object Build high-performance applications using the knowledge you gain from this book Benchmark performance to learn if you'll benefit from multithreading.
Read More ↓Edition Statements
- Publication Date:2021.
- Edition:1st edition
Publication Statements
- Publisher(s):O'Reilly Media, Inc
- Language:eng
- Publication Date:2021.
The Physical Object
- Description:1 online resource (200 pages)
Edition Identifiers
- oclc:on1251847681
Table of Contents
Cover -- Copyright -- Table of Contents -- Foreword -- Preface -- Target Audience -- Goals -- Conventions Used in This Book -- Using Code Examples -- O'Reilly Online Learning -- How to Contact Us -- Acknowledgments -- Chapter 1. Introduction -- What Are Threads? -- Concurrency Versus Parallelism -- Single-Threaded JavaScript -- Hidden Threads -- Threads in C: Get Rich with Happycoin -- With Only the Main Thread -- With Four Worker Threads -- Chapter 2. Browsers -- Dedicated Workers -- Dedicated Worker Hello World -- Advanced Dedicated Worker Usage -- Shared Workers
Shared Worker Hello World -- Advanced Shared Worker Usage -- Service Workers -- Service Worker Hello World -- Advanced Service Worker Concepts -- Message Passing Abstractions -- The RPC Pattern -- The Command Dispatcher Pattern -- Putting It All Together -- Chapter 3. Node.js -- Before We Had Threads -- The worker_threads Module -- workerData -- MessagePort -- Happycoin: Revisited -- With Only the Main Thread -- With Four Worker Threads -- Worker Pools with Piscina -- A Pool Full of Happycoins -- Chapter 4. Shared Memory -- Intro to Shared Memory -- Shared Memory in the Browser
Shared Memory in Node.js -- SharedArrayB…
Writers
No reviews yet. Be the first to rate this work.
Files & Downloads
-
Multithreaded JavaScript: Concurrency Beyond the …
EPUB · 6.2 MB · updated -
Multithreaded JavaScript: Concurrency Beyond the …
EPUB · 8.0 MB · updated -
Multithreaded JavaScript: Concurrency Beyond the …
PDF · 5.8 MB · updated -
Многопоточный JavaScript -- (.pdf)
PDF · 7.3 MB · updated -
Многопоточный JavaScript -- (.pdf)
PDF · 7.4 MB · updated
Rate & Review