Is javascript running on single thread? If I declare a global array, and start changing it (eg removing elements) on AJAX callback and at the same time start changing the ve
JavaScript is single threaded.
The referenced post discusses differences of setTimeout on different machines...
HTML5 introduces the concept of WebWorkers which executes JavaScript on multiple background threads. Though it is not supported on all browsers...
https://developer.mozilla.org/En/Using_web_workers
http://dev.w3.org/html5/workers/