Question: Is there any way to implement a multi-threading execution in Javascript.
I am implementing a pagination in my application, with a target of the minimum waiting time for the user. Neither I want all the data to be brought to the client-side in one go, nor do I want to make a server as well as a DB hit on every "next/previous" button clicked.
So I want the browser to create a request and update my data list, while the front end user has not reached the last page.

If there is anyone who has implemented this, then please suggest me.

Answer: 
You can use setInterval of and setTimeOut function to gain multi-threaded effect but it is not true multi-threading you can read nice discussion [here](https://stackoverflow.com/questions/4037738/does-this-behavior-of-setinterval-imply-multithreading-behavior-in-javascript)
It is very easy to do it by using the Concurrent.Thread JavaScript library, which is free and open source towards this end. No SetInterval or SetTimeout required.

You can download it from here: <http://sourceforge.net/apps/mediawiki/jsthread/index.php?title=Main_Page>

Tutorial explaining the use of the library can be found here: <http://www.infoq.com/articles/js_multithread>