[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem when suspending a task.
- Date: Wed, 6 Jan 2010 08:50:18 -0600
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: Problem when suspending a task.
On 01/06/2010 07:55 AM, Nick Thomas wrote:
> 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.
> Nick Thomas
> Email: nick.thomas at pixsan.com
> rtems-users mailing list
> rtems-users at rtems.org
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