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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-5780-6_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5779-0
Online ISBN: 978-1-4302-5780-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)