Re:Writing an OS in Rust: Async/Await
by geogriffin on Monday March 30, 2020 @05:30PM
(#22732456)
well.. there is CONFIG_PREEMPT and the even broader CONFIG_PREEMPT_RT in linux [1].
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
> Embedding islands of cooperative multitasking in a sea of pre-emptive multitasking seems to make a lot more sense than the other way around.
In my reading of the post, the proposal is to do cooperative multitasking within the kernel, and preemptive multitasking between the kernel and the userspace. I think this is tenable, within the kernel, you pretty much need to play nice with the rest of the kernel anyway. Most kernels don't have effective protection for one part of the kernel causing problems with the rest; although, some do have limited protection against drivers that crash or loop.