top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

who initiates priority in scheduling in RTOS?

+3 votes
431 views

How priority is initialized in RTOS? who will initiate priority for scheduling?

posted Sep 21, 2013 by Giri Prasad

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Most RTOS have between 32 and 256 possible priorities for individual tasks/processes. The scheduler will run the task with the highest priority. When a running task gives up the CPU, the next highest priority task runs, and so on...

The highest priority task in the system will have the CPU until:

  • it runs to completion (i.e. it voluntarily give up the CPU)
  • a higher priority task is made ready, in which case the original task is pre-empted by the new (higher priority) task.
    As a developer, it is your job to assign the task priorities such that your deadlines will be met.
answer Sep 21, 2013 by Salil Agrawal
Similar Questions
+2 votes

Please explain with detail, what is the major difference between Normal OS and RTOS?

+1 vote

What is real-time operating system. what factors make an operating system as real O.S. And when a project is being started then how an engineering team decides about preferable/suitable O.S.

...