For the primitive systems, Let's provide single thead behaviour with Non-Preemptive RR Scheduler.
Just we need, a super(endless) loop for main execution.
Scheduler check task flag (or task state) if task is ready to execution, runs task otherwise checks for other tasks.
ENDLESS LOOP
{
if task1.flag is fired
run task1
if task2.flag is fired
run task2
}
There is no preemption so no need to task synchorization mechanisms
For the primitive systems, Let's provide single thead behaviour with Non-Preemptive RR Scheduler. Just we need, a super(endless) loop for main execution.
Scheduler check task flag (or task state) if task is ready to execution, runs task otherwise checks for other tasks.