Getting the execution state of a task

Gedare Bloom gedare at
Tue Jul 2 13:20:33 UTC 2013

On Tue, Jul 2, 2013 at 5:11 AM, Mohammed Khoory <mkhoory at> wrote:
> Hi,
> Is there any possible way to obtain the state of a task ID? i.e. whether
> it's dormant, ready, executing, blocked, suspended, or deleted?
With a debugger yes.

> I do know there is a way to determine whether a task is suspended, and that
> is by using rtems_task_is_suspended, but does that also include tasks that
> are blocked?
No, blocked is different from suspended. From inside RTEMS there is
_States_Is_blocked, but this is not available from the application
layer. You may propose to add an rtems_task_is_blocked(), patches
welcomed at rtems-devel mailing list.

> Regards,
> Mohammed Khoory
> _______________________________________________
> rtems-users mailing list
> rtems-users at

More information about the users mailing list