Hello, welcome back.
In this lesson, we should talk about if we are to cedula.
The scheduling algorithm is the software routine that decides which ready state task to transition into
their running state.
The free auto scheduler would ensure tasks that share the same priority are selected to enter the running
state.
In turn, this is known as the Round-Robin scheduling the Round-Robin scheduling algorithm in Free Arktos.
There's no guarantee time is shared equally between the tasks of equal priority only that ready state
tasks of equal priority will enter the run in state one by one or one after the other.
So let's take a look at some of the terminologies that free Arktos would use in its documentation,
as well as in its quote, we have this here called fixed priority.
This type of shigella does not change the priority assigned to the tasks being scheduled, but also
does not prevent the tasks from changing their own priorities.
It does not prevent the task from changing their own priority as well as priority of other tasks by
the scheduler does not change the priority assigned.
And we have what is known as the preemptive scheduler like this scheduler would immediately preempt
the running state task if a task that has a higher priority than the running state task enters their
ready state.
So there could be a task run and run and run, and then a higher priority task enters the ready states
automatically.
This higher priority task will take the Processo and when we see preempt its means, just move in the
just.
Moving the task out of the running states without the task asking for it, so the task would just be
pushed out.
Essentially from there, from the Iranian state into the red state, to allow a task of a higher priority
task to run, OK.
So time slicing, we also have the time slicing, we've spoken about fixed priority, preemptive.
Now we have time slicing this shigella shares processing time between tasks of equal priority, even
if the tasks do not explicitly yield or enter the blocked state.
The scheduling algorithm described us using time slicing to select a new task to enter the running states
at the end of each time slice if there are other registered tasks that have the same priority as the
running task.
So this could mean you have a task, a task A, B and C, they all have the same priority in a time
slicing mode.
If our time slice is set at five milliseconds, Task E would run for five milliseconds and then the
process will be given to Task B to run for five milliseconds and then the process would then be given
to Task C to run for five milliseconds.
After that, it would be given back to Task A to run for five milliseconds.
Is the time slicing.
OK, so we can configure these these scheduler characteristics in our free Archos config that h we can
set preemptions one to use preemption, we can set a time slice into one to use time slicing and of
course we shall see how to do this.
Practically this all there is for this lesson and I'll see you in the next lesson.
Have a nice day.