logoalt Hacker News

zbentley • today at 1:10 PM • 2 replies • view on HN

I think this taxonomy is not good. It’s comparing apples to oranges, or apples to fruit sugars or something.

Threads are not a programming paradigm or style, any more than a CPU is a programming paradigm or style. They’re a tool, an existential piece of the landscape which can be used to perform paradigms/styles. Like CPUs, they do have affinity for certain use cases, but the car is not the road trip.


Replies

layer8 • today at 1:45 PM

If threads don’t share state, they are effectively the same as processes. The whole purpose of having threads in addition to processes is to share state. If you don’t share state, you don’t need threads. That’s what the blog post means by “an OS with no threads”.

nmcfarl • today at 1:53 PM

It’s pre-coffee, and I totally disagree “threads are not a programming paradigm”. But the best way to do that is to say that the car IS the road trip and it’s a fundamentally different thing if you use a train.