3 ms·
> using threads internally (thread per IO operation) would defeat a purpose of async system Yes and no. Having single threaded JS (no matter if runtime uses
by paulddraper 10y ago
> using threads internally (thread per IO operation) would defeat a purpose of async system
Yes and no.
Having single threaded JS (no matter if runtime uses epoll) allows for JS concurrency concerns to be limited to a small number of places, i.e
no pre-emptive. This makes concurrency in JS easier to reason about.