Question

How is a function called after a time has passed implemented in javascript or any other interpreted language?

In other words, is there a loop behind in the javascript interpreter that checks all the time a list of timers, or is there any particular way that the operating systems handle this?

Thanks

Was it helpful?

Solution

There's a good description in the John Resig's blog

OTHER TIPS

You could look at the source of Firefox or WebKit to see how they implemented it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top