Skip to main content
  • 1184 Accesses

Abstract

In Chapter 12, I introduced promises as a way to handle values returned from asynchronous operations. While promises offer a lot of flexibility in how you do async work, I pointed out that asynchronous does not imply multiple threads. JavaScript applications execute in a single-threaded environment. Asynchronous does not mean “do two things at the same time.” Instead, it means “do this thing later, and let me know what happened when it’s done.” That said, applications executing on multiple threads have several advantages, such as taking advantage of multiple processors to perform a task more quickly or to perform some work in the background, while the user can continue to use other parts of the application.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Scott Isaacs

About this chapter

Cite this chapter

Isaacs, S., Burns, K. (2013). Web Workers. In: Beginning Windows Store Application Development–HTML and JavaScript Edition. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5780-6_13

Download citation

Publish with us

Policies and ethics