Web Workers
NB: This is not about web developers or software engineers; though there are some similarities in behaviors of these two. Web Workers are new set of APIs introduced with HTML5 specifications. This enables web pages to run (long running) scripts in the background threads. Web workers brings following advantage in HTML/ Java Script world. Running tasks (specially time consuming jobs or repeated jobs like status check etc) behind the scene while UI is interactive to the users. A task parallel programming approach which enable the developers to make use of increasing usage of multi-core processors in the PC/laptop world. Not implemented through loops; but uses message notification mechanism to communicate to and from the main UI thread. Creating a worker Spawning a working in JavaScript is simple; just need to call the "Worker()" constructor with a URI of script to execute in the worker thread. var worker = new Worker("worker.js"); There are two ma