01.06.2013 Views

Choosing an RTOS - IAR Systems

Choosing an RTOS - IAR Systems

Choosing an RTOS - IAR Systems

SHOW MORE
SHOW LESS

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>!

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

Saved successfully!

Ooh no, something went wrong!