Sunday, April 7, 2013

Web Worker on HTML 5

I'm planning to write an article or two about this web worker.

The background is our html+javascript behavior; it ran in just single thread (mean single process). With the development of technology, it's become a common that multicore processor installed on a computer or laptop, even in some models of tablets.

The problem is, because single thread nature of html+javascript, it couldn't take advantage of multicore processor. The process itself become inefective if there loop algorithm need to be done and many of that state affecting GUI (the common symptom is freeze web page, not respon to click and even popup that appears and warn us to stop the script)

Web worker solved that by implementing multi thread processes on single page. Web worker thread itself runs in background and independent of GUI so a large loop computation process won't freeze the page.

(to be continued)