Skip to content

Comment on Ask HN: Event loop vs. Threads

Comments

"I was thinking about switching to fad software X" is generally not a good line of thought. Why do you want to switch? Node.js doesn't offer parallelism, so it is obviously not a good choice for your app.

And "threads" is two things. There's programming in a threaded style, and there's using native operating system threads. They don't have to go together. For example, if you use a green thread library, you end up with the exact same benefits and limitations as an event loop, but with simpler, easier to understand code. A really good thread library could then handle multiplexing green threads over OS threads to get you parallelism too (see haskell).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.