Автор: Thomas Hunter II and Bryan English
Издательство: O’Reilly Media
Год: 2021-08-13: Fourth Release
Формат: EPUB
Страниц: 200
Размер: 10 Mb
Язык: English
Traditionally, jаvascript 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--jаvascript 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 jаvascript explores the various features that jаvascript runtimes have at their disposal for implementing multithreaded programming, providing both practical real-world examples, as well as reference material.
You'll learn:
What multithreaded programming is and how you can benefit from it
The differences between a web worker, a service worker, and a worker thread
When and when not to use multithreading in an application
How to leverage the Atomics object to orchestrate communication between threads