9 ms·
A bunch of threads on one core isn't that different from node handling the same number of events. Just moving some of the responsibility from the OS to a framew
by jimmaswell 8y ago
A bunch of threads on one core isn't that different from node handling the same number of events. Just moving some of the responsibility from the OS to a framework.
- chrisseaton 8y agoThe most critical difference is that threads can yield anywhere. Events only yield in well-defined places. Sometimes that's useful, sometimes it isn't. For example a thread can yield in the middle of a native call to something like zlib. If zlib doesn't know about your event framework (and it doesn't) then it can't yield.