Skip to content
Snippets Groups Projects
Commit 56aa1465 authored by Federico's avatar Federico
Browse files

Fixed two bugs in kernel.cpp related to the control scheduler. 1. The idle...

Fixed two bugs in kernel.cpp related to the control scheduler. 1. The idle thread needs to be set after the main one. 2. The yield on tick skew in restartKernel() was not functioning after the code was rewritten using atomic operations. The control scheduler heavily relies on this, because if the burst of the current thread finishes while the kernel is paused, preemption can only occur here, as the control scheduler does not perform periodic preemption.
parent fe442de7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment