News for hackers. Stuff that matters.
Re:The Rust standard library no longer has any scheduling ba... by justincormack on Sunday December 29, 2013 @05:47AM (#6979163)
Have you got a reference for user-scheduled OS threads? Hadn't come across that...
Re:The Rust standard library no longer has any scheduling ba... by pron on Sunday December 29, 2013 @05:52AM (#6979178)
Re:The Rust standard library no longer has any scheduling ba... by mtanski on Sunday December 29, 2013 @10:31AM (#6979820)
Thanks for providing the link and it does seam like an interesting proposal.

To summarize:

Switching into ring0 (kernel is not that expensive)

We're going to stay with the 1:1 thread model

We're going to provide an new syscall to hint to the scheduler which thread to switch to.

Provided we have time slice still left the scheduler can do that almost instantly since picking the task to run next is expensive (their data).

This isn't scheduler activations but a yieldTo().

This method avoids all sorts of problems with 3rd party libraries namely avoiding TLS problems.

This doesn't do anything about block IO.

Re:The Rust standard library no longer has any scheduling ba... by pron on Sunday December 29, 2013 @10:40AM (#6979863)
> This doesn't do anything about block IO.

I'm not too familiar with the details but I think they mention that a thread can specify a callback that will be called if it blocks on IO, and the callback can specify another thread to switch to.