This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: time slicing problem
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Luca Formaggio <luca_formaggio at yahoo dot it>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: 03 Nov 2003 08:48:58 -0700
- Subject: Re: [ECOS] time slicing problem
- Organization: MLB Associates
- References: <20031103154403.91017.qmail@web41414.mail.yahoo.com>
Please copy your email to the list so that all may benefit.
Private email support from MLB Associates is only available
under contract.
On Mon, 2003-11-03 at 08:44, Luca Formaggio wrote:
> --- Gary Thomas <gary@mlbassoc.com> ha scritto: > On
> Mon, 2003-11-03 at 08:19, Luca Formaggio wrote:
> > > Hi.
> > > I need that my application that run over ecos run
> > > continuously whitout any interruptions of the
> > operatig
> > > system. It is possible? I try to recompile ecos
> > > whitout the scheduler timeslicing option but I
> > receive
> > > a build error.
> >
> > What do you mean "without any interruptions?" If
> > you want
> > some code to "just run" - why do you need an OS at
> > all? What
> > facilities of the operating system are you using?
> >
> > --
> > Gary Thomas <gary@mlbassoc.com>
> > MLB Associates
> >
> >
> > --
> > Before posting, please read the FAQ:
> > http://sources.redhat.com/fom/ecos
> > and search the list archive:
> > http://sources.redhat.com/ml/ecos-discuss
> >
> I have a function that consume a specified number of
> clock cycles, this number is a parameter of this
> function. But in some cases the function consume a
> number of cycles greater than the number in the
> parameter. This problem happens at constant time
> interval. I think that is the o.s. that ''preempt''
> the thread when the time slice is reached. My
> reasoning is correct?
More likely, this is happening when the system clock "ticks".
If you have such a function which cannot tolerate this, i.e.
it must run in a particular number of cycles, you could turn
off the interrupts. On the other hand, if you have such a
function, why do you need an operating system at all?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss