Task Management

group OS_TASK

Define, create, and control task functions.

The Task Management function group allows creating, deleting, and controlling tasks in the system.

Tasks can be in the following states:

  • RUNNING: The task that is currently running is in the running state. Only one task at a time can be in this state.

  • READY: Tasks that are ready to run are in the ready state. Once the running task has terminated or is waiting, the next ready task with the highest priority becomes the running task.

  • WAITING: Tasks that are waiting for an event to occur are in the waiting state.

  • INACTIVE: Tasks that are not created or terminated are in the inactive state. These tasks typically consume no system resources.

../_images/OS-task-state-transition.jpg