Problem when suspending a task.
Joel Sherrill
joel.sherrill at OARcorp.com
Wed Jan 6 14:50:18 UTC 2010
On 01/06/2010 07:55 AM, Nick Thomas wrote:
> Hi,
>
> Not much to go on with this, but I am suffering from a weird problem shortly
> after a task is suspended using rtems_task_suspend.
>
> The problem is that lots of other tasks appear hung too, not just the one I
> wanted to suspend.
> This includes the rtems monitor task, so getting info out of the unit is
> very difficult.
>
> I don't really know where to start looking for the cause of this issue.
>
> Bizarrely, the task which is being suspended has a lot of printf statements.
> If I remove these printf statements then the problem doesn't happen and the
> unit continues to function normally.
>
> Is there a problem when suspending a task when it is in the middle of a
> printf statement?
>
>
It could have a mutex locked when you suspend it and other
tasks are queuing up on the same mutex.
> Regards
>
> Nick
>
> -----------------------------
> Nick Thomas
> Email: nick.thomas at pixsan.com
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list