but are they OS threads?
-
-
-
Yes, and that’s fine. Linux scales quite well to tons of OS threads.
- 8 more replies
New conversation -
-
-
The same reason go has goroutines and not raw threads.
-
We tried goroutines in Rust, and they weren’t really any more performant than OS threads. Certainly not enough to justify the complexity increase in FFI, etc.
- 5 more replies
New conversation -
-
-
The main advantage that goroutines have over os threads is that they're only switched off once they reached IO that blocks, or a specific blocking concurrency operation in the language. I don't think os threads offer the same capability....
-
Yes, they do. The kernel is better at that than userland is.
- 5 more replies
New conversation -
-
-
This Tweet is unavailable.
-
The point is that green threads aren’t that much more scalable than regular OS threads, and most people would be fine with just OS threads.
- 5 more replies
-
-
-
I wish I could see a proper explanation about the real tradeoffs between M:N and native. I keep reading (from you, mainly) that green threads aren't worth it, but Go, Haskell, etc. surely wrote those huge runtimes for a reason...?
-
Also, surely there must be _some_ advantages to using async IO that you'd lose by using sync IO on native threads. Otherwise, mio/async-await/etc. wouldn't exist. So surely that's a factor too, isn't it?
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.