This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: scheduling descrepency in eCos
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Rajan Srivastava <rajan at cdotd dot ernet dot in>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 3 Apr 2003 15:39:33 +0200
- Subject: Re: [ECOS] scheduling descrepency in eCos
- References: <Pine.OSF.4.21.0304031848080.7071-100000@sagit.cdotd.ernet.in>
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