jnaulet / OpenPicoRTOS

Very small, safe, lightning fast, yet portable preemptive RTOS with SMP support
MIT License
62 stars 7 forks source link

Get rid of that pesky modulo in task_core_is_available() #91

Closed jnaulet closed 5 months ago

jnaulet commented 5 months ago

There's a runtime division on every single tick / context switch due to the support of round-robin. It's not obvious how we can achieve the same behavior & predictablity without it, but we sure have to try our best.