[ECOS] Thread states

Paleologos Spanos paleolog@ee.ucla.edu
Tue Apr 17 12:46:00 GMT 2001


 Hi,I am working on eCos scheduler and I have a question concerning thread
states.A preempted thread is in which state?the "Suspended"?Which is the
state of a thread which has finished execution?thr "Exited"?

  Actually I want to have a discrimination between preempted threads and
threads which are just beginn execution.So,for example when there is a
context switch I want to identify if this thread(next) is a preempted
thread which will continue its execution or it is a new thread which is
just beginn execution.Can I do this screening by checking the thread
states?
 If yes,which is the state for the threads in the 2 cases I mentioned?
 
    Does anyone know?
                Thank you.




More information about the Ecos-discuss mailing list