Multithreaded JavaScript

Author: Thomas Hunter II

Publisher: O'Reilly Media (2021-09-22)

978-1-098-10443-6

Multithreaded JavaScript ebook cover

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...

  • Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/c2240056/tmpsite) in Unknown on line 0