heap3

bachadamin wrote on Monday, April 03, 2017:

Hi
I wanna ask about heap3?
I didn’t know how it’s thread safe
when i used it it’s the only heap that made my used RAM lower why and how?

hs2sf wrote on Monday, April 03, 2017:

This might help: http://www.freertos.org/a00111.html

rtel wrote on Monday, April 03, 2017:

wanna

Please use correct spellings in consideration of readers for whom
English is a second language.

I didn’t know how it’s thread safe
when i used it it’s the only heap that made my used RAM lower why and how?

If you are using heap_3 then malloc() is provided by your compiler, so
we can’t answer this and you will need to refer to the compiler
documentation or vendor support. However, heap_3 uses crude scheduler
locks to ensure calls to malloc() and free cannot be interrupted by
other tasks.