News for hackers. Stuff that matters.
Re:Protothreads: Lightweight Stackless Threads in C by MrBuddyCasino on Thursday May 16, 2019 @05:15AM (#19927369)
If "running multiple tasks on an embedded system that share a stack" sounds interesting to you, Rust's RTFM is actually quite clever[0]. It only works on ARM MCUs right now, but tasks are IRQ triggered, have a priority, memory safe, deadlock-free and have very low overhead. Scheduling is done in hardware via the interrupt controller.

[0] https://github.com/japaric/cortex-m-rtfm

There are no comments on this comment yet.