This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: time slicing problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]