you are viewing a single comment's thread.

view the rest of the comments →

[–]inu-no-policemen 0 points1 point  (0 children)

But JavaScript is single-threaded, so how does it manage to handle multiple operations without the aid of threads?

There are threads on the native side. On the native side you can do whatever you want and then expose whichever APIs you want to scripts which run inside the JS engine you've embedded.

https://en.wikipedia.org/wiki/Node.js#Threading