top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

who initiates priority in scheduling in RTOS?

+3 votes
75 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
+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.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...