From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Gautier To: "Tony Ko" Cc: Subject: Re: [ECOS] cyg_thread_delay Date: Sat, 14 Jul 2001 19:35:00 -0000 Message-id: <20010715043342.0771.GAUTIER@email.enst.fr> References: <9860C773D04D834D83FD6FAD00A61E930F2027@gctsemi.gctsemi.com> X-SW-Source: 2001-07/msg00455.html On Sun, 15 Jul 2001 11:02:07 +0900 "Tony Ko" wrote: > hi. > > I understand cyg_thread_delay make current thread sleep. > then who are going to wake the sleeped thread? I think the code for this is in the clock DSR > and after waken, the thread goes to READY mode or RUN mode ? First the DSR wake up the thread so it's set to READY. It maybe set to RUN whenever it is rescheduled, which may happened at the end of the clock ISR, if the scheduler is not locked, and the thread has an higher priority than any other READY thread. -- Fabrice Gautier