I just watched the following video: Introduction to Node.js and still don\'t understand how you get the speed benefits.
Mainly, at one point Ryan Dahl (Node.js\' cre
Threads are used only to deal with functions having no asynchronous facility, like stat().
The stat() function is always blocking, so node.js needs to use a thread to perform the actual call without blocking the main thread (event loop). Potentially, no thread from the thread pool will ever be used if you don't need to call those kind of functions.