* [ECOS] eCos- Thread cycle time...
@ 2004-08-30 16:26 Gorjup Matthias
2004-08-30 16:44 ` [ECOS] " Grant Edwards
2004-08-30 17:04 ` [ECOS] " Andrew Lunn
0 siblings, 2 replies; 3+ messages in thread
From: Gorjup Matthias @ 2004-08-30 16:26 UTC (permalink / raw)
To: 'ecos-discuss@ecos.sourceware.org'
Hello,
I am processing all my algorithms in a standard eCos thread.
What is the default cycle time for threads in eCos platform ?
For example is it possible to process one Rx frame in a high priority task
thread in 4 ms ? ( Of course it depends on the length of frame however the
question is ; is it possible to process less than 10 msec or a thread in
eCos steps in every 10msec ? )
Best Regards
Matthias Gorjup
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ECOS] Re: eCos- Thread cycle time...
2004-08-30 16:26 [ECOS] eCos- Thread cycle time Gorjup Matthias
@ 2004-08-30 16:44 ` Grant Edwards
2004-08-30 17:04 ` [ECOS] " Andrew Lunn
1 sibling, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2004-08-30 16:44 UTC (permalink / raw)
To: Gorjup Matthias; +Cc: 'ecos-discuss@ecos.sourceware.org'
On Mon, Aug 30, 2004 at 06:24:01PM +0200, Gorjup Matthias wrote:
> What is the default cycle time for threads in eCos platform ?
I don't understand the question. What do you mean by "cycle
time"?
> For example is it possible to process one Rx frame in a high priority task
> thread in 4 ms? ( Of course it depends on the length of frame however the
> question is ; is it possible to process less than 10 msec or a thread in
> eCos steps in every 10msec ? )
Sure. 10ms is just the timer tick frequency. The only thing
it affects is the granularity of things like cyg_thread_delay().
If your thread is blocked waiting for a frame, it will wake up
when the frame arrives regardless of the system timer tick
period.
--
Grant Edwards
grante@visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] eCos- Thread cycle time...
2004-08-30 16:26 [ECOS] eCos- Thread cycle time Gorjup Matthias
2004-08-30 16:44 ` [ECOS] " Grant Edwards
@ 2004-08-30 17:04 ` Andrew Lunn
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2004-08-30 17:04 UTC (permalink / raw)
To: Gorjup Matthias; +Cc: 'ecos-discuss@ecos.sourceware.org'
On Mon, Aug 30, 2004 at 06:24:01PM +0200, Gorjup Matthias wrote:
>
> Hello,
>
>
> I am processing all my algorithms in a standard eCos thread.
>
> What is the default cycle time for threads in eCos platform ?
>
> For example is it possible to process one Rx frame in a high priority task
> thread in 4 ms ? ( Of course it depends on the length of frame however the
> question is ; is it possible to process less than 10 msec or a thread in
> eCos steps in every 10msec ? )
You are talking about round robin scheduling of multiple threads on
the same priority. The timeslice defaults to 5 ticks, but is
configurable. See CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS. Normally 1 tick
is 10ms but that is also configurable.
eCos is premptive, so if a higher priority thread becomes runable it
will run till it blocks. Only then will any lower priority threads
run.
Does that answer your question?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-30 16:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-30 16:26 [ECOS] eCos- Thread cycle time Gorjup Matthias
2004-08-30 16:44 ` [ECOS] " Grant Edwards
2004-08-30 17:04 ` [ECOS] " Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).