From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paleologos Spanos To: ecos-discuss@sources.redhat.com Subject: [ECOS] Thread states Date: Thu, 12 Apr 2001 14:28:00 -0000 Message-id: X-SW-Source: 2001-04/msg00130.html 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.