This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: scheduling descrepency in eCos
- From: "Gary D. Thomas" <gary dot thomas at mind dot be>
- To: Rajan Srivastava <rajan at cdotd dot ernet dot in>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 03 Apr 2003 06:38:52 -0700
- Subject: Re: [ECOS] scheduling descrepency in eCos
- References: <Pine.OSF.4.21.0304031848080.7071-100000@sagit.cdotd.ernet.in>
On Thu, 2003-04-03 at 06:49, 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?
Where does the data from 'gets()' come from? If it's the
user console, then you'll need to use the serial driver
(which is interrupt driven). By default this will go through
RedBoot which does not use interrupts.
Search the archives - there was a long discussion about this
just a few weeks ago.
--
.--------------------------------------------------------.
| Mind: Embedded Linux and eCos Development |
|--------------------------------------------------------|
| Gary Thomas email: gary dot thomas at mind dot be |
| Mind ( http://mind.be ) tel: +1 (970) 229-1963 |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc |
'--------------------------------------------------------'
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss