Choosing an RTOS - IAR Systems
Choosing an RTOS - IAR Systems
Choosing an RTOS - IAR Systems
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
How to choose <strong>an</strong> <strong>RTOS</strong> – ESC 2011<br />
Common features of <strong>RTOS</strong>s<br />
Memory allocation<br />
• Usually, most objects are inst<strong>an</strong>tiated at run-time, so <strong>an</strong><br />
<strong>RTOS</strong> needs the ability to dynamically allocate memory.<br />
• The st<strong>an</strong>dard C function malloc is not thread-safe, so the<br />
<strong>RTOS</strong> must provide a thread-safe method to replace it.<br />
• Different <strong>RTOS</strong>s do this in different ways, so if your<br />
application does quite a bit of dynamic allocation <strong>an</strong>d<br />
recollection of memory, this c<strong>an</strong> have a deleterious impact<br />
on your code.<br />
• In general, higher-end commercial <strong>RTOS</strong>s do the best job of<br />
memory allocation<br />
• Be sure to use the thread-safe memory functions provided<br />
to you by the <strong>RTOS</strong>!