Re:Why does it seem like threading and fibers in Node have b...
by cedias on Monday December 02, 2013 @11:52AM
(#6834762)
I'm puzzled, what's the use case for threads in the node asynchronous model ? Isn't the major use of threads is to prevent long running task from blocking the app in synchronous programming ?
[ Parent
| on HN ]
Re:Why does it seem like threading and fibers in Node have b...
by scubaguy on Monday December 02, 2013 @12:03PM
(#6834826)
IO is asynchronous, but code execution is not asynchronous. If a block of code is doing intensive math for 100ms, then that blocks the whole process, and potentially other IO, from executing in that 100ms.
Perhaps you should think of node as "event-driven" rather than "asynchronous".