01.06.2013 Views

Choosing an RTOS - IAR Systems

Choosing an RTOS - IAR Systems

Choosing an RTOS - IAR Systems

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How to choose <strong>an</strong> <strong>RTOS</strong> – ESC 2011<br />

Common features of <strong>RTOS</strong>s<br />

Task schedulers<br />

• Different <strong>RTOS</strong>s use different scheduling algorithms<br />

• Co-operative schedulers require the tasks to yield( )<br />

in order to allow other tasks to execute.<br />

• Pre-emptive schedulers are more common in <strong>RTOS</strong>s<br />

<strong>an</strong>d may take several forms:<br />

• Round-robin scheduling, where each task gets a<br />

time-slice of the MCU<br />

• Fixed-priority pre-emptive, which ensures that the<br />

next task with the highest priority gets executed<br />

• Rate-monotonic scheduling, where the task with<br />

the shortest duration has the highest priority<br />

• And others…<br />

• Some schedulers are more susceptible to priority inversion<br />

th<strong>an</strong> others, so be aware of deadlocks!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!