We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys, I'm using the Keil RTX (RTOS) and I would like to ask, how to check if a particular task is running or not? In another words, I need to get the state of the task. I've searched though the help, but I found nothing :(
Thanks and best regards, George
How would you manage that? The only task that is running would be the task that just asks if the task is running.
Many threads can be runnable, but only one can be running.
Hm, sorry, maybe I used the wrong words. Of course only one task is running at a time, but I need to check if annother specific task is in READY or in INACTIVE state. Basically I need a function like this one:
task_state = os_get_task_state(tid);
But like I said, I found no such thing in the reference manual...
Thanks!