Book description
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
Publisher resources
Table of contents
- Foreword
- Preface
- 1. Introduction
- 2. Browsers
- 3. Node.js
- 4. Shared Memory
- 5. Advanced Shared Memory
- 6. Multithreaded Patterns
- 7. WebAssembly
- 8. Analysis
- A. Structured Clone Algorithm
- Index
Product information
- Title: Multithreaded Javascript
- Author(s):
- Release date: September 2021
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098104436
You might also like
book
Modern JavaScript for the Impatient
Exploit the Power of Modern JavaScript and Avoid the Pitfalls JavaScript was originally designed for small-scale …
book
JavaScript from Beginner to Professional
Start your journey towards becoming a JavaScript developer with the help of more than 100 fun …
book
Node.js: Novice to Ninja
Node.js: Novice to Ninja is your hands-on guide to learning everything needed to build a professional …
book
Node.js Design Patterns - Third Edition
Learn proven patterns, techniques, and tricks to take full advantage of the Node.js platform. Master well-known …