How is setTimeout implemented in the javascript interpreters or timers in general?
-
09-09-2019 - |
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
Solution
There's a good description in the John Resig's blog
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow