r/learnjavascript • • Aug 13 '26

Is “Node.js is single-threaded” an incomplete mental model?

Single-threaded JS execution ≠ single-threaded runtime.

How do you explain the distinction?

4 Upvotes

23 comments sorted by

View all comments

1

u/Electronic-Door7134 Aug 14 '26

Nodejs has had threads for years now, you can even set the processor affinity. But you have to opt in, just like in every other threadable language.