This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Thread states
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Thread states
- From: Paleologos Spanos <paleolog at ee dot ucla dot edu>
- Date: Thu, 12 Apr 2001 14:28:19 -0700 (PDT)
Hi,I am working on eCos scheduler and I have a question concerning thread
states.A preempted thread is in which state?the "Suspended"?
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.