
Amazon Prime Free Trial
FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with FREE Delivery" below the Add to Cart button and confirm your Prime free trial.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited FREE Prime delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Multithreaded Javascript: Concurrency Beyond the Event Loop 1st Edition
Purchase options and add-ons
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
- ISBN-101098104439
- ISBN-13978-1098104436
- Edition1st
- PublisherO'Reilly Media
- Publication dateOctober 26, 2021
- LanguageEnglish
- Dimensions6.8 x 0.6 x 9.1 inches
- Print length211 pages
Frequently bought together

Customers who viewed this item also viewed
From the brand
-
Explore JavaScript resources
-
Explore TypeScript
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
Target Audience
The ideal reader of this book is an engineer who has been writing JavaScript for a few years, and who doesn’t necessarily have experience with writing multithreaded applications or even experience with more traditionally multithreaded languages like C++ or Java. We do include some example C application code, as a sort of multithreaded lingua franca, but it’s not something that the reader is expected to be familiar with or even understand.
If you do have experience with such languages, that’s great, and this book will help you understand the JavaScript equivalent to the functionality provided by whatever language you may be familiar with. On the other hand, if you’ve only written code using JavaScript, then this book is also for you. We include information across multiple layers of learning; this includes both low-level API references, high-level patterns, and plenty of technical tangents in between to help fill in any gaps.
Goals
Perhaps the most exuberant goal of this book is to bring knowledge to the community that it’s possible to build multithreaded applications using JavaScript. Traditionally, JavaScript code was constrained to a single core, and indeed there are many Twitter threads and forum posts describing the language as such. With a title like Multithreaded JavaScript, we hope to completely dispel the notion that JavaScript applications are confined to a single core.
At a more concrete level, the goal is to teach you, the reader, several aspects about writing multithreaded JavaScript applications. By the time you’re done reading this book you’ll understand the various web worker APIs provided in browsers, their strengths and weaknesses, and when to use which. As far as Node.js goes, you’ll understand the worker threads module and how its APIs compare to those in the browser.
The book focuses on two approaches to building multithreaded applications: one using message passing and the other using shared memory. By reading this book you’ll understand the APIs used to implement each, when you might want to use one approach or the other, and in which situations they can be combined—and you’ll even get your hands dirty with some high-level patterns built upon these approaches.
Editorial Reviews
About the Author
Bryan is an open source JavaScript and Rust programmer and enthusiast and has worked on large enterprise systems, instrumentation, and application security. Currently he’s a Senior Open Source Software engineer at Datadog. He’s used Node.js both professionally and in personal projects since not long after its inception. He is also a Node.js core collaborator and has contributed to Node.js in many ways through several of its various Working Groups.
Product details
- Publisher : O'Reilly Media; 1st edition (October 26, 2021)
- Language : English
- Paperback : 211 pages
- ISBN-10 : 1098104439
- ISBN-13 : 978-1098104436
- Item Weight : 13.6 ounces
- Dimensions : 6.8 x 0.6 x 9.1 inches
- Best Sellers Rank: #1,174,422 in Books (See Top 100 in Books)
- #276 in JavaScript Programming (Books)
- #1,002 in Cloud Computing (Books)
- #3,795 in Programming Languages (Books)
- Customer Reviews:
About the authors

Thomas has contributed to dozens of enterprise Node.js services and has worked for a company dedicated to securing Node.js. He has spoken at several conferences on Node.js and JavaScript, is an O'Reilly published author, and is an organizer of NodeSchool SF.

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonReviews with images
Poor quality print
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
- Reviewed in the United States on November 8, 2021I'd highly recommend this book to anyone working with JS. Even for experienced JS developers, it uncovers a whole area of JS that's mostly underutilized. The book is packed with practical examples and parallels to other languages. It's engaging and well worth the purchase.
- Reviewed in the United States on March 28, 2024I can't believe people write a great book and charge decent amount for it just to choose the cheapest possible on demand printing. Some pages are crisp and some are slightly blurry which is really annoying. Funny how $10 fiction books have better print quality than $60 technical books these days.
I can't believe people write a great book and charge decent amount for it just to choose the cheapest possible on demand printing. Some pages are crisp and some are slightly blurry which is really annoying. Funny how $10 fiction books have better print quality than $60 technical books these days.
Images in this review
- Reviewed in the United States on April 2, 2024As other users have mentioned it, the construction of the book is pretty low quality... Like surprisingly low quality, especially at this price point.
Top reviews from other countries
VincenzoReviewed in Italy on January 22, 20223.0 out of 5 stars good book but poor on some subjects
does not explain enough about the sharedarraybuffer and share json in this data structure







