4 ms·
>Rust was also experimenting with green threads and similar async IO but they recently changed to use all-native threads. I'm pretty sure that I/O is only task
by M2Ys4U 12y ago
>Rust was also experimenting with green threads and similar async IO but they recently changed to use all-native threads.
I'm pretty sure that I/O is only task-blocking in Rust, and tasks can be 1:1 or M:N with native threads.
- Jweb_Guru 12y agoThat's correct, but there's not much reason to use green threads in Rust--they don't have the advantages that green threads in Go do, besides the lack of context switching (they aren't "lightweight" because they are just as resource-intensive as threads).