[ECOS] scheduling descrepency in eCos

Andrew Lunn andrew.lunn@ascom.ch
Thu Apr 3 13:39:00 GMT 2003


On Thu, Apr 03, 2003 at 06:49:43PM +0500, Rajan Srivastava wrote:
> Hi,
> 
>  We are facing a scheduling problem in eCos anonymous cvs
>  (used for Motorola PowerPC860).
>  We have a thread each at priority 14 & 25. Priority 14
>  thread has a "gets()" in its code and hence always waits
>  for some input from keyboard. So, ideally, this priority-14
>  thread should get descheduled and the lower priority thread
>  (ie, priority-25) should get CPU, but this is not happening.
>  We found that Priority-25 is not getting CPU at all!
>  What could be the reason?

Are you using a proper serial driver or the diag driver. The diag
driver is polled IO, not interrupt driver, so this is expected
behavior.

        Andrew

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



More information about the Ecos-discuss mailing list