This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]