Multithreaded Javascript Concurrency Beyond the Event Loop
- Книги
- 14-02-2023, 02:21
- 134
- 0
- voska89
Multithreaded jаvascript: Concurrency Beyond the Event Loop by Bryan English
English | October 12, 2021 | ISBN: 1098104439 | 214 pages | MOBI | 1.24 Mb
The nature of jаvascript is to be single threaded. This is reflected not only in libraries and applications, but also in online forum posts, books, and online documentation. Thanks to recent advancements in the platform-such as with web workers in the browser, worker_threads in Node.js, and the Atomics and SharedArrayBuffer objects-jаvascript engineers are able to build multi-threaded applications. 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, using a spectrum of API reference material and high level programming patterns.
Learn what multithreaded programming is and how you can benefit from itUnderstand the differences between a dedicated worker, a shared worker, and a service workerIdentify when and when not to use threads in an applicationOrchestrate communication between threads by leveraging the Atomics objectUnderstand both the gains and pitfalls of using shared memoryBenchmark performance to learn when you'll benefit from multiple threads
Links are Interchangeable - No Password - Single Extraction