Altera_Forum
Honored Contributor
20 years agoQuerying if a task is alive in uCOS
Hi,
I want to implement a simple software watch dog task whose job is to see if all other tasked in the system are alive. If a task hangs (is dead) the watch dog would then remove power to an IO board in my system. Is there any mechanism in uCOS that can be used to report the tasks health? i.e. detect if the task has hung (for whatever reason). I did look at the OSTaskQuery() function that populates an OS_TCB structure that has all sorts of interesting data within it, however didn't see anything specific that detemines if the task is still alive. Much appreciated, Aiden