9 years, 4 months ago.

Memory protection among tasks

I am working with the mbed based project with Keil MDK compiler after I exported it from the mbed online compile.

The default standard C library for exported project is the using microlib. (Project/Options for target - Use Microlib in Target tab)

According to description in above page, "C standard library mutexes", I feel like I need to protect resource among RTOS task because I am using the Microlib. Do I not use function causes memory allocation in other tasks except main task, if I don't use mutex in memory allocation and free?

The RTOS sample code of official mbed uses memory resource freely among the tasks without resource protection. /media/uploads/hillkim7/keil_microlib.png

Question relating to:

Be the first to answer this question.