An E_NOMEM error (insufficient memory) may be returned when the service call “acre_tsk” (create task and assign task ID automatically) is called after the execution of the service call “exd_tsk” (exit current task and delete it). Why does it do that?
The size of the dynamic stack area may be insufficient. Repeated creation and deletion of tasks that use a dynamic stack causes fragmentation of the available dynamic stack area. Therefore, an E_NOMEM error may occur even when there is sufficient free space.
|HI7000/4 Real-time OS for SuperH Family|