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 management

Task management

From the course: IoT Foundations: Operating Systems Fundamentals

Start my 1-month free trial

Task management

- [Narrator] We've learned that in the OS a task is in the form of a sequential function or piece of program which is scheduled to run based on the task scheduling algorithm. The algorithm itself can be based on the priority based around the robbing algorithm or other ones. However, to actually manage a task better known as kernel more things need to be done. Let's talk about two important things here. First, the states of a task and second the context switching of the tasks when for example one task gets preempted by another task and then resumed to run later. A typical application may consist of multiple tasks. So we need to define the states of a task in order to allow the kernel to basically differentiate the states that tasks are in and take some actions on managing them. Basically, every task has two states, running or not running. An OS schedules the tasks to transition between the states. In a multitask environment a task scheduler in the OS kernel can schedule a task to run…

Contents