II, Thomas Hunter

Multithreaded JavaScript: Concurrency Beyond the Event Loop

(No reviews yet) Write a Review
ISBN 13:
9781098104436
author:
II, Thomas Hunter
format:
Paperback / softback
publisher:
O'Reilly Media
language:
English
Publication Year:
2021
Pages:
200
Dimensions:
23.2 x 17.8 centimetres (0.35 kg
Genre:
Computers, Programming, CGI,
Condition:
New
Availability:
Item usually sent within 10 working days
£40.35

Description

JavaScript has traditionally been seen as a single-threaded language. However, recent advancements have transformed it into a multi-threaded language, thanks to features like Atomics and SharedArrayBuffers objects, and Web Workers in the browser. This book explores the various features available for implementing multithreaded programming in JavaScript runtimes, providing both practical examples and reference material. You'll learn about web workers, service workers, and worker threads, as well as how to orchestrate communication between threads using the Atomics object. By understanding multithreaded programming and its benefits, you can build high-performance applications that take advantage of multiple cores. The book also includes guidance on when to use threads in an application and how to benchmark performance to determine if multithreading will improve your code's efficiency.

View AllClose