5 ms·
You’re focusing on single-threadedness like that’s a problem but it’s not. For example, you can run multiple processes on a single core system just fine — even
by coddle-hark 7y ago
You’re focusing on single-threadedness like that’s a problem but it’s not. For example, you can run multiple processes on a single core system just fine — even if one of those processes hangs.
AFAIK there’s nothing in the JS language that forces a single-threaded implementation. I think the real reasons that Node is single threaded are a) legacy and more importantly b) a lot of existing code would break if events were dispatched in parallel.
- dmitriid 7y ago> you can run multiple processes on a single core system just fine — even if one of those processes hangs. Yes, I can. Node.js doesn't do that.