Third version of my simple, preemptive and fun purpose, real time kernel, enjoy!