Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It had just two: libgreen backed tasks with "green threads", libnative backed them with OS threads.


Does that mean every task will be an OS thread? Or are tasks handled by a runtime specific scheduler and will use a pool of threads for IO?


> Does that mean every task will be an OS thread?

By default, yes.


Hmmmm, I hope there are other alternatives in the future (besides libuv). It would be nice to see Rust have a lightweight unit of execution similar to goroutines or Erlang processes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: