Currently a delay is just a busy loop that yields back to the OS every iteration. Might be better to put the task to sleep and store this time (in the task data structure). Every context switch would first wake up tasks that have been sleeping for long enough.
Currently a delay is just a busy loop that yields back to the OS every iteration. Might be better to put the task to sleep and store this time (in the task data structure). Every context switch would first wake up tasks that have been sleeping for long enough.