The nature of JavaScript is to be single threaded. This is reflected not only in libraries and applications, but also in online forum posts, books, and online documentation. Thanks to recent advancements in the platformโsuch as with web workers in the browser, worker_threads in Node.js, and the Atom
Multithreaded JavaScript: Concurrency Beyond the Event Loop
โ Scribed by II Thomas Hunter, Bryan English
- Publisher
- O'Reilly Media
- Year
- 2021
- Tongue
- English
- Leaves
- 214
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
The nature of JavaScript is to be single threaded. This is reflected not only in libraries and applications, but also in online forum posts, books, and online documentation. Thanks to recent advancements in the platformโsuch as with web workers in the browser, worker_threads in Node.js, and the Atomics and SharedArrayBuffer objectsโJavaScript engineers are able to build multi-threaded applications. 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, using a spectrum of API reference material and high level programming patterns.
- Learn what multithreaded programming is and how you can benefit from it
- Understand the differences between a dedicated worker, a shared worker, and a service worker
- Identify when and when not to use threads in an application
- Orchestrate communication between threads by leveraging the Atomics object
- Understand both the gains and pitfalls of using shared memory
- Benchmark performance to learn when you'll benefit from multiple threads
๐ SIMILAR VOLUMES
Traditionally, JavaScript has been a single-threaded language. 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
After you have programmed in Javascript for a while, you begin to wonder how things work. Some elusive answers are clarified in this short ebook. The presentation is in the style of the author's well-received ebook on Haskell, “From Simple IO to Monad Transformers”. This style was
After you have programmed in Javascript for a while, you begin to wonder how things work. Some elusive answers are clarified in this short ebook. The presentation is in the style of the author's well-received ebook on Haskell, “From Simple IO to Monad Transformers”. This style was
C++ Concurrency in Action is a reference and guide to the new C++ 11 Standard for experienced C++ programmers as well as those who have never written multithreaded code. This book will show you how to write robust multithreaded applications in C++ while avoiding many common pitfalls.<br>Multiple pro
C++ Concurrency in Action is a reference and guide to the new C++ 11 Standard for experienced C++ programmers as well as those who have never written multithreaded code. This book will show you how to write robust multithreaded applications in C++ while avoiding many common pitfalls.<br>Multiple pro