Well it is a HTML 5 Concept. When your web application requires heavy lifting or background processing on the JavaScript side, the Web Workers API is your answer. The Web Workers interface spawns real OS-level threads, allowing for data to be passed back and forth between any given threads (or worker).

   Furthermore, because communication points between threads are carefully controlled, concurrency problems are rare.You cannot access components unsafe to threads or the DOM, and you have to pass specific data in and out of a thread through serialized objects. So you have to work extremely hard to cause problems in your code. Regardless of how you plan to use Web Workers in your application, the main idea behind processing any behind-the-scenes data lies in the idea of creating multiple workers (or threads) in the browser.

Tag

Related Post

Leave a Reply