This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is that possible to release task resource without executing idle function ?

Other Parts Discussed in Thread: SYSBIOS

Hi all , 

          I know after Task_exit(), the terminate flag of the task will be set !      And  be delete while Idle .

          I have 2 question about the method

          1. is sysbios use Task_Instance_finalize() to release the task resource ?

         2. if the system is too busy result in no chance to run idle then the terminated task can't release the resource(allocated stack memory).

Is that possible to release  task  resource immediately without  executing idle function ?

    any advice ?

Brenden

  • Brenden,

    Okay, here's the scenario.

    If you've configured for terminated tasks to be deleted from Idle, then you should not delete the tasks yourself.  If you try to delete the tasks yourself, this could lead to unknown behavior because depending on who gets there first and does the delete, the idle function may think it still needs to delete the task.

    So to answer your question, Its not recommended to delete the task yourself if you've configured for idle to do the work.

    Now, you could try it yourself to see if it works.

    Judah