Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

ROTS

I am new one of programmers heaven. Can any one explaine the full detail of task (types preemptive, sheduling)and diffrent between normal OS and RTOS?

Comments

  • johnsonmejohnsonme Posts: 57Member
    It is often essential to organize applications into independent, though cooperating, programs. Each of these programs, while executing, is called a task.
    With a preemptive priority-based scheduler, each task has a priority and the kernel ensures that the CPU is allocated to the highest priority task that is ready to run. This scheduling method is preemptive in that if a task that has higher priority than the current task becomes ready to run, the kernel immediately saves the current task's context and switches to the context of the higher priority task.
    Preemptive priority scheduling can be augmented with round-robin scheduling. A round-robin scheduling algorithm attempts to share the CPU fairly among all ready tasks of the same priority. Without round-robin scheduling, when multiple tasks of equal priority must share the processor, a single task can usurp the processor by never blocking, thus never giving other equal-priority tasks a chance to run.
    In normal OS, the result of the processing may or may not come and there is no guarentee that the result will be produced. It may not process the request in real time nor respond to any request in specified time. But in RTOS, there is a guarentee that the result will be there, and that too in specified time.

Sign In or Register to comment.