Multithreaded JavaScript: Concurrency Beyond the Event Loop

0
(0)

Multithreaded JavaScript: Concurrency Beyond the Event Loop
 

  • Author:Bryan EnglishII Thomas Hunter
  • Length: 200 pages
  • Edition: 1
  • Publisher: O’Reilly Media
  • Publication Date: 2021-11-16
  • ISBN-10: 1098104439
  • ISBN-13: 9781098104436
  • Sales Rank: #1697208 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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

    中文:

    书名:多线程JavaScript:事件循环之外的并发性

    JavaScript的本质是单线程的。这不仅反映在图书馆和应用程序中,还反映在在线论坛帖子、书籍和在线文档中。多亏了该平台的最新改进–比如浏览器中的Web Worker、Node.js中的Worker_Thresses以及原子和SharedArrayBuffer对象–JavaScript工程师能够构建多线程应用程序。这些功能将成为世界上最流行的编程语言最大的范式转变。

    多线程的JavaScript使用一系列API参考资料和高级编程模式,探索了JavaScript运行时可用于实现多线程编程的各种功能。

    • 了解什么是多线程编程以及如何从中受益
    • 了解专职员工、共享员工和服务员工之间的区别
    • 确定何时以及何时不在应用程序中使用线程
    • 通过利用原子对象编排线程之间的通信
    • 了解使用共享内存的利弊
    • 对性能进行基准测试,以了解您何时将从多线程中受益
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册