Hello, welcome back.
And this lesson, we going to give an introduction to real time operating systems, so.
What is an operating system?
Basically, an operating system is resource manager, it's money, just resources for the various part
of the system.
We see it's a real time operating system when this resource manager can guarantee deadlines.
For instance, let's say I have a program and the program is supposed to take a number of actions,
a program for an autonomous vehicle, it's supposed to take an action such as turn.
But before it takes such an action, it first needs to read the data from its leader saying so and check
the status of it.
After that, he has to read from it radars.
And so and then he has it has to be read from its camera.
And then based on the data values of these various sensors, a particular action will be taken.
If we are to design this in a real time operating system and we want all of it to occur.
To OK and meet a particular deadline, what we would do is we would place them in their own tasks.
Such as it's arranged over here, over here we have task one, and this task is just take action.
It's just says take action and then come back to the top, take action.
And this task is just for reading to lead us.
I started this other one is for reading their reader studies and this one is for reading the Congress.
That is, these are all separate tasks.
A Real-Time operating system allows us to arrange a program like this.
Otherwise we would have to keep all of this in, let's say, one one task and then we could run it sequentially.
In a way, we would talk more about it later, would describe the differences between Real-Time operating
system and the other way that we write our code.
But where you need to remember is a real time operating system as a resource manager that guarantees
deadlines.
OK, so now let's take a look at some performance metrics.
We said it guarantees deadlines, what we mean by that sort.
So deadline simply means deriving the right result within a set of time constraints.
That is the deadline.
And another way to to check the performance of the real time operating system is to check its reliability.
And reliability means running in a predictable way with a guaranteed response.
So if you want to check the performance of a Real-Time operating system, first, ask yourself, does
it meet the deadline set is a reliable.
Does it always run in a predictable way with a guaranteed response?
If these two metrics are parsed, then you would see, OK, having a Real-Time operating system here.
Of course, the other metrics, but these are the the two two of the most important ones.
Right.
Now, let's take a look at another popular term we'd come across known as the kernel, so we we have
already defined what a real time operating system is.
Now, what is Akino?
Akino is the core of the Real-Time operating system, and the kernel has control over every aspect of
the realtime operating system.
And it's it's responsible for booting into the right communication, synchronization and thread scheduling.
So Real-Time Operating Systems have something known as the threat scheduler.
Or the task switcher, this would switch the currently running task.
From the process of bringing a new one, these components are part of what we call the colonel.
So the kennel is like the call, if you want to remember what a kennel is, you can simply describe
it as the core of the operating system, in our case, the core of the Real-Time operating system.
And over here, we've stated for examples of some of its responsibilities.
Right.
And the next lesson we should talk about a very important concept in real time operating systems known
as context switching, so I'll see you in the next lesson.