0
نام کتاب
Multithreaded JavaScript

Concurrency Beyond the Event Loop
Thomas Hunter II and Bryan English

Paperback214 Pages
PublisherO'Reilly
Edition1
LanguageEnglish
Year2022
ISBN9781098104436
10
1K
A1801
انتخاب نوع چاپ:
جلد سخت
746,000ت
0
جلد نرم
616,000ت
0
طلق پاپکو و فنر
636,000ت
0
مجموع:
0تومان
کیفیت متن:اورجینال انتشارات
قطع:B5
رنگ صفحات:دارای متن و کادر رنگی
پشتیبانی در روزهای تعطیل!
ارسال به سراسر کشور

#JavaScript

#Multithreaded

#Node_js

#C_application

#C++

#Java

توضیحات

The nature of JavaScript 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—JavaScript 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 JavaScript explores the various features that JavaScript 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 it
  • •  Understand the differences between a dedicated worker, a shared worker, and a service worker
  • •  Identify when and when not to use threads in an application
  • •  Orchestrate communication between threads by leveraging the Atomics object
  • •  Understand both the gains and pitfalls of using shared memory
  • •  Benchmark performance to learn when you'll benefit from multiple threads

    Target Audience

The ideal reader of this book is an engineer who has been writing JavaScript for a few years, and who doesn’t necessarily have experience with writing multithreaded applications or even experience with more traditionally multithreaded languages like C++ or Java. We do include some example C application code, as a sort of multithreaded lingua franca, but it’s not something that the reader is expected to be familiar with or even understand.
 

If you do have experience with such languages, that’s great, and this book will help you understand the JavaScript equivalent to the functionality provided by whatever language you may be familiar with. On the other hand, if you’ve only written code using JavaScript, then this book is also for you. We include information across multiple layers of learning; this includes both low-level API references, high-level patterns, and plenty of technical tangents in between to help fill in any gaps.
 

Goals

Perhaps the most exuberant goal of this book is to bring knowledge to the community that it’s possible to build multithreaded applications using JavaScript. Traditionally, JavaScript code was constrained to a single core, and indeed there are many Twitter threads and forum posts describing the language as such. With a title like Multithreaded JavaScript, we hope to completely dispel the notion that JavaScript applications are confined to a single core.
 

At a more concrete level, the goal is to teach you, the reader, several aspects about writing multithreaded JavaScript applications. By the time you’re done reading this book you’ll understand the various web worker APIs provided in browsers, their strengths and weaknesses, and when to use which. As far as Node.js goes, you’ll understand the worker threads module and how its APIs compare to those in the browser.
 

The book focuses on two approaches to building multithreaded applications: one using message passing and the other using shared memory. By reading this book you’ll understand the APIs used to implement each, when you might want to use one approach or the other, and in which situations they can be combined—and you’ll even get your hands dirty with some high-level patterns built upon these approaches.

 

About the Author

Thomas Hunter II has contributed to dozens of enterprise Node.js services and has worked for a company dedicated to securing Node.js. He has spoken at several conferences on Node.js and JavaScript, is JSNSD/JSNAD certified, and is an organizer of NodeSchool SF. Thomas has published four books including Distributed Systems with Node.js by O'Reilly.

 

Bryan is an open source JavaScript and Rust programmer and enthusiast and has worked on large enterprise systems, instrumentation, and application security. Currently he’s a Senior Open Source Software engineer at Datadog. He’s used Node.js both professionally and in personal projects since not long after its inception. He is also a Node.js core collaborator and has contributed to Node.js in many ways through several of its various Working Groups.

دیدگاه خود را بنویسید
نظرات کاربران (0 دیدگاه)
نظری وجود ندارد.
کتاب های مشابه
JavaScript
791
Beginning JSON
765,000 تومان
JavaScript
1,145
Object-Oriented JavaScript
1,260,000 تومان
JavaScript
2,834
You Don't Know JS Yet: Get Started
426,000 تومان
JavaScript
1,134
Testing JavaScript Applications
1,223,000 تومان
JavaScript
894
Programming JavaScript Applications
605,000 تومان
JavaScript
1,384
JavaScript from Beginner to Professional
1,272,000 تومان
JavaScript
3,136
JavaScript: The Definitive Guide
1,532,000 تومان
JavaScript
1,422
Data Structures and Algorithms with JavaScript
594,000 تومان
JavaScript
290
RxJS Cookbook for Reactive Programming
760,000 تومان
JavaScript
1,083
JavaScript: Novice to Ninja
1,464,000 تومان
قیمت
منصفانه
ارسال به
سراسر کشور
تضمین
کیفیت
پشتیبانی در
روزهای تعطیل
خرید امن
و آسان
آرشیو بزرگ
کتاب‌های تخصصی
هـر روز با بهتــرین و جــدیــدتـرین
کتاب های روز دنیا با ما همراه باشید
آدرس
پشتیبانی
مدیریت
ساعات پاسخگویی
درباره اسکای بوک
دسترسی های سریع
  • راهنمای خرید
  • راهنمای ارسال
  • سوالات متداول
  • قوانین و مقررات
  • وبلاگ
  • درباره ما
چاپ دیجیتال اسکای بوک. 2024-2022 ©