
As an Amazon Associate and affiliate partner, Menrva Books earns from qualifying purchases. Learn more
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
This book investigates how recent advancements have transformed JavaScript from a traditionally single-threaded language into a multithreaded one. The authors, Bryan English and Thomas M. Hunter, explore the new features like Atomics and SharedArrayBuffers, and Web Workers, which enable multithreaded programming. The book provides practical examples and reference material to help developers understand and implement multithreading, covering its benefits, different types of workers, and when to use threads effectively.
This technical book is designed for developers seeking to leverage the latest multithreading capabilities in JavaScript. It aims to provide a comprehensive understanding of new features and their practical application. The content suggests a focus on performance optimization and advanced programming techniques for web developers.
Page Count:
214
Publication Date:
2021-09-22
Publisher:
"O'Reilly Media, Inc."
ISBN-10:
1098104404
ISBN-13:
9781098104405
No comments yet. Be the first to share your thoughts!