[ECOS] When or on what condition does "deschedule" happen?

Gary Thomas gary@mlbassoc.com
Mon May 19 13:31:00 GMT 2008


Andrew Lunn wrote:
>> My question is last part of Deschedule when ThreadC resumes execution.
>>
>> Am I correct in assuming that among your conditions, only two conditions  
>> should be fullfiled to make it possible
>> for ThreadC to resume execution ?
>> 1.When the thread blocks.(How does scheduler recognise this ?)
> 
> Blocking calls are part of the OS and the scheduler knows about them.

More than that; when a thread blocks, the act of blocking actually
calls into the scheduler to immediately switch to the next available
thread.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list