From the course: IoT Foundations: Operating Systems Fundamentals

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Task scheduler

Task scheduler

From the course: IoT Foundations: Operating Systems Fundamentals

Start my 1-month free trial

Task scheduler

- [Instructor] We know that the way of allowing multiple tasks to run is based on CPU time sharing. However, we didn't talk about how the tasks are running at each time slot. This is the responsibility of a task scheduler which is part of an OS kernel. How the next task can run and how much time they can take are determined by your task scheduler. Every task scheduler is based on a task scheduling algorithm also known as process scheduling algorithm. A task scheduler can be based on the two kinds of task scheduling algorithms, preemptive and non-preemptive. Preemptive task scheduling can preempt the current running task to allow another task to run. Conversely, non-preemptive task scheduling does not preempt the current running tasks as it allows a task to complete before the other tasks get a CPU time share to run. A real-time OS usually uses the preemptive task scheduling algorithms for its task scheduler. Let's look at the typical preemptive scheduling algorithm called the…

Contents