Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Web Workers: Multithreaded Programs in JavaScript

Buy
Web Workers is a powerful feature of HTML5 that hasn’t received very much attention. It provides an API that allows you to run JavaScript in a separate thread that doesn’t interfere with the user interface of your web application. This JavaScript runs in parallel with the main renderer and any of your user interface scripts on it. This allows long and “processing-heavy” tasks to be executed without making the page unresponsive.

Like threads in other technologies, Web Workers are relatively heavyweight. You don’t want to use them in large numbers, as each one consumes significant system resources. Web Workers are expected to handle long tasks that rely on constrained resources (e.g., CPU, network bandwidth, etc.). They have a high startup cost and a high instance of memory cost.

Because it is a new, evolving standard, different browsers implement the Web Workers specification in different ways. Although some aspects of the implementation are stabilizing, I suspect that features like access to IndexedDB will be available soon in most modern browsers. I hope that with this book and the adoption of modern browsers we will see more usage of this powerful API.

Web apps would run much better if heavy calculations could be performed in the background, rather than compete with the user interface. With this book, you’ll learn how to use Web Workers to run computationally intensive JavaScript code in a thread parallel to the UI. Yes, multi-threaded programing is complicated, but Web Workers provide a simple API that helps you be productive without the complex algorithms.

If you have an intermediate to advanced understanding of JavaScript— especially event handling and callbacks—you’re ready to tackle Web Workers with the tools in this example-driven guide.

  • Start creating Web Workers and understand what they can and can’t do
  • Determine which browser versions support the API
  • Use dedicated Web Workers for tasks that consume a lot of CPU, such as data parsing
  • Explore use cases for creating inline Workers, such as encapsulating a web app in one page
  • Create a shared Worker to communicate multiple web app instances to the server, and other uses
  • Learn best practices for debugging Web Workers
  • Apply Web Workers within the server-side Node environment
(HTML tags aren't allowed.)

Pro Puppet
Pro Puppet

Pro Puppet, Second Edition, now updated for Puppet 3, is an in-depth guide to installing, using, and developing the popular configuration management tool Puppet.

Puppet provides a way to automate everything from user management to server configuration. You'll learn how Puppet has changed in the latest version, how to use it on...

Practical AWS Networking: Build and manage complex networks using services such as Amazon VPC, Elastic Load Balancing, Direct Connect, and Amazon Route 53
Practical AWS Networking: Build and manage complex networks using services such as Amazon VPC, Elastic Load Balancing, Direct Connect, and Amazon Route 53

Your one step guide to learn all about AWS networking.

Key Features

  • Master your networking skills on Public Cloud.
  • Gain hands-on experience of using Amazon VPC, Elastic Load Balancing, Direct Connect and other AWS products.
  • Implement troubleshooting skills...
CCNA: Cisco Certified Network Associate: Fast Pass
CCNA: Cisco Certified Network Associate: Fast Pass

The perfect companion to Sybex's CCNA: Cisco Certified Network Associate Study Guide, Sixth or Deluxe editions, or any CCNA study tool

The Perfect CCNA Preparation and Review Tool

Many candidates who complete a Study Guide or course also appreciate a review tool that helps them brush up on key topics....


Social, Managerial, and Organizational Dimensions of Enterprise Information Systems
Social, Managerial, and Organizational Dimensions of Enterprise Information Systems
Enterprise information systems touch every process of an organization as new functionalities in previously existing and upcoming solutions are created every day. Social, Managerial, and Organizational Dimensions of Enterprise Information Systems discusses the technological developments, main issues, challenges, opportunities, and...
Software Testing: Concepts and Operations (Quantitative Software Engineering Series)
Software Testing: Concepts and Operations (Quantitative Software Engineering Series)

Explores and identifies the main issues, concepts, principles and evolution of software testing, including software quality engineering and testing concepts, test data generation, test deployment analysis, and software test management

This book examines the principles, concepts, and processes that are fundamental to
...

New Masters of Flash
New Masters of Flash

New Masters of Flash is both a global showcase and practical tutorial. Nineteen of the planet's most awe-inspiring Flash designers share their influences, ideas and objectives in individual introductory essays. They then take the reader through a step-by-step tutorial explaining in detail how to create in Flash 5 the interfaces,...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy