This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: idle thread
Andrea Acquaviva wrote:
> For example, if a thread is waiting for a blocking I/O device to fill the
> input buffer, the driver should put the thread into idle state until an
> interrupt arrives.
> How can I do this with ecos? When do the scheduler decide to switch to idle
> thread?
When there are no other runnable threads to switch to.
Drivers most often block by using some kernel synchronization primitive
like a mutex, condition variable or semaphore.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine